Computer Science, asked by sayan290, 2 months ago

d)
Write a Java statement for the following:

To extract the second last character of a word (w) stored in the variable ch.​

Answers

Answered by himanshu2006vps
2

Answer:

char ch=w.charAt(w.length()-2);

is the answer


himanshu2006vps: same to you
himanshu2006vps: ok
himanshu2006vps: Concentrate in your test
sayan290: now till 3.00pm
himanshu2006vps: and from next time don't copy
sayan290: thanks again
himanshu2006vps: welcome
sayan290: ok
sayan290: bye
himanshu2006vps: bye
Similar questions