Computer Science, asked by adilmuhammed127, 8 months ago

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 11a31JoanneTom
1

Answer:

Explanation:

Computer

3

Similar questions