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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
