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
تحرير المحتوى
طباعة
تضمين
المزيد
الواجبات
لوحة الصدارة
عرض المزيد
عرض أقل
لوحة الصدارة هذه في الوضع الخاص حاليًا. انقر على
مشاركة
لتجعلها عامة.
عَطَل مالك المورد لوحة الصدارة هذه.
عُطِلت لوحة الصدارة هذه حيث أنّ الخيارات الخاصة بك مختلفة عن مالك المورد.
خيارات الإرجاع
المطابقة
قالب مفتوح النهاية. ولا يصدر عنه درجات توضع في لوحة الصدارة.
يجب تسجيل الدخول
النمط البصري
الخطوط
يجب الاشتراك
الخيارات
تبديل القالب
إظهار الكل
ستظهر لك المزيد من التنسيقات عند تشغيل النشاط.
فتح النتائج
نسخ الرابط
رمز الاستجابة السريعة
حذف
استعادة الحفظ التلقائي:
؟