compareTo () method compares two strings lexicographically based on the Unicode value of each character in the string. Syntax. stringA.compareTo(stringB);. Both ...
確定! 回上一頁