मराठी

Write the output of the codes given below. String s1 = "RISTORANT"; String s2 = “VENEZUELA"; char c1 = s2.charAt(s1.indexOf('T')); int n1 = s1.indexOf(s2.charAt(8));

Advertisements
Advertisements

प्रश्न

Write the output of the codes given below.

String s1 = "RISTORANT";    String s2 = “VENEZUELA";
char c1 = s2.charAt(s1.indexOf('T'));   int n1 = s1.indexOf(s2.charAt(8));
System.out.print(" c1 =" +c1+ " and n1 ="+n1);
अति संक्षिप्त उत्तर
Advertisements

उत्तर

c1 = E and n1 = 6

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×