Write the Output for the Following : String S= “Today is Test”; System.Out.Println(S.Indexof(‘T’)); System.Out.Println(S.Substring(0, 7) + ” ” + “Holiday”);
Advertisements
Question
Write the output for the following :
String s= “Today is Test”;
System.out.println(s.indexOf(‘T’)); System.out.println(s.substring(0, 7) + ” ” + “Holiday”);
One Line Answer
Advertisements
Solution
0
Today i Holiday
(g) r1 = 5.83 .
r2 = 4.0
(h) Result 1 = 26100200
Result 2 = 126
(i) (i) Once
(ii) WIN
WIN
shaalaa.com
Is there an error in this question or solution?
