Computer Applications

Write a statement for each to perform the following task on a string:

Extract the second last character of a word stored in the variable wd.

Java String Handling

ICSE 2010

51 Likes

Answer


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

Answered By

33 Likes


Related Questions