KnowledgeBoat Logo

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

53 Likes

Answer


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

Answered By

34 Likes


Related Questions