2. Write the output of the following code:
String S = new String("Computer");
String str=S;
System.out.println(str.substring(0));
System.out.println(str.indexOf('p'));
Answers
Answered by
1
Answer:
Explanation:
Computer
3
Similar questions