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.,
0%
Chapters 4
共享
共享
共享
由
Ldonlan
G9
G10
G11
G12
CS
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
匹配游戏
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?