Computer Science, asked by tanishkasingh098, 8 months ago

The command to check the third character of my name is “k” will be *



if(n.charAt(3)==”k”)

if(n.charAt(2)==’k’)

if(n.charAt(2)==”k”)

if(n.charAt(3)==’k’)

Answers

Answered by Oreki
0

Answer:

2. if (n.charAt(2) = = 'k')

Answered by anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Answer:-}

The command used to check the third character of my name is 'k' will be,

if(n.charAt(2)=='k')

Note:- Index number starts with 0, so the third character index is 2.

Similar questions