(a) Give the output of the following string functions :
(i) “MISSISSIPPI”.indexOf('S') + "MISSISSIPPI”.lastIndexOf(T)
(ii) "CABLE”.compareTo(“CADET")
Answers
Answered by
3
1) MISS +MISSISSIPPI= 2+10= 12
2) B=66
D=68
VALUE= -2
Similar questions