मराठी

Write the output of the codes given below. String na = "Failure is not, falling down"; String nb = "Failure is, not getting up"; int n1 = nb.lastIndexOf('ť'); String nt1 = na.substring(0, 7);

Advertisements
Advertisements

प्रश्न

Write the output of the codes given below.

String na = "Failure is not, falling down";
String nb = "Failure is, not getting up";
int n1 = nb.lastIndexOf('ť');
String nt1 = na.substring(0, 7);
n1 = na.indexOf('');
String nt2 = nb.substring(n1 +1, 10);
Stringnt3=na.charAt(22)+"iv"+na.substring(na.lastIndexOf('1')+1, na.lastIndexOf('));
String nt4 = nb.substring(nb.lastIndexOf(' ') + 1);
String nt5 = nt1 +"" + nt2 +"" + nt3 +""+ nt4;
System.out.print(" Therefore: " + nt5);
अति संक्षिप्त उत्तर
Advertisements

उत्तर

Therefore : Failure is giving up

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×