Computer Science, asked by iscsiddhantnj6293, 8 months ago

what will be the output of thi program.
String s="knowledge",
int t=s. index OF (s.charAT(2)); System.out.println (t);
System.out.println (t+s);​

Answers

Answered by sharanya200636
0

Answer:

2

2knowledge

Explanation:

char At of 2 is o

index of o is 2

it's to confuse you, but it's easy.

t=2

t+s= 2knowledge

HOPE IT HELPS

PLS MARK AS BRAINLIEST!!!!!

Similar questions