Give the Output of the Following String Functions: (I) "Mississippi".Indexof('S') + "Mississippi".Lastindexof('I') (Ii) "Cable".Compareto("Cadet")
Advertisements
प्रश्न
Give the output of the following string functions:
- "MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')
- "CABLE".compareTo("CADET")
लघु उत्तर
टीपा लिहा
Advertisements
उत्तर
- 2 + 10 = 12
- −2
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
