हिंदी

Write the output of the codes given below. String sw = “Pharaoh-Meant-King"; String sy = sw.substring(0, 5).toUpperCase();: String sz = sw.substring(5).toLowerCase(); System.out.println(" SY = " + sy)

Advertisements
Advertisements

प्रश्न

Write the output of the codes given below.

String sw = “Pharaoh-Meant-King";
String sy = sw.substring(0, 5).toUpperCase();:
String sz = sw.substring(5).toLowerCase();
System.out.println(" SY = " + sy); System.out.println(" SZ = " + sz );
अति संक्षिप्त उत्तर
Advertisements

उत्तर

SY = PHARA

SZ = oh-meant-king

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 10: String Handling - Exercises [पृष्ठ २४७]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 10 String Handling
Exercises | Q 3. (i) | पृष्ठ २४७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×