write output::::::
String X [] = {"Birds","Birthday","Bombay","Black"};
System.out.println("SUN".concat(x[1].substring(5)));
System.out.println(x[2].indexOf(x[2].charAt(2)));
Answers
Answered by
1
Answer:
- It will be an error because the length of string hello is 5 and the last letter is o with index position 4 where 8 is not there
Similar questions