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
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
จับคู่
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม