मराठी

Write the output of the codes given below. String ts = “ALL PROBLEMS SOLVED"; String rs = ts.substring(ts.indexOf('P')); String vs = rs.substring(rs.lastIndexOf('S'));

Advertisements
Advertisements

प्रश्न

Write the output of the codes given below.

String ts = “ALL PROBLEMS SOLVED";
String rs = ts.substring(ts.indexOf('P'));
String vs = rs.substring(rs.lastIndexOf('S'));
ts = (ts.concat(vs)).concat(rs);
System.out.println(" TS = "+ ts);
अति संक्षिप्त उत्तर
Advertisements

उत्तर

TS = ALL PROBLEMS SOLVED SOLVED PROBLEMS SOLVED

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 10: String Handling - Exercises [पृष्ठ २४७]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×