KnowledgeBoat Logo

Computer Applications

Write down the syntax to extract the last character of a word(wd) stored in the variable chr.

Java String Handling

ICSE 2010

74 Likes

Answer


char chr = wd.charAt(wd.length() - 1);

Answered By

45 Likes


Related Questions