Write the output: [2]
String s= "Channel", s1= "Agriculture";
System.out.println (s1.indexOf ('r') + s1.lastIndexOf ('r'));
System.out.println (s1.substring (4, s1.length ()));
Answers
Answered by
3
Answer:
Output : (2+10) = 12
Output : nel 7
hope it helped.
Similar questions