new - used to create a new object of a class., null - used to indicate that an object reference doesn’t refer to any object yet., str1.compareTo(str2) - returns 0 if they two strings have the same characters, a negative number if str1 is less than str2 and a positive number otherwise., str1.length() - returns the number of characters in a string object including any spaces or special characters., str1.equals(str2) - this method of the String class will return true if the characters in the two strings are the same., str1.indexOf(str2) - returns the position that str2 starts in str1 or -1 if str2 isn’t in str1., str1.substring(start,end) - returns a new string with all the characters in str1 from start to end - 1., str1.toLowerCase() - returns a new string with the same characters as in str1, but all lowercase., str1.toUpperCase() - returns a new string with the same characters as in str1, but all uppercase., toString(obj) - this is a method that all classes inherit from the Object class. It can be overriden to print out a string representation of an object.,

Көшбасшылар тақтасы

Визуалды стиль

Опциялар

Үлгіні ауыстыру

Өңдеуді жалғастыру: ?