Computer Science, asked by vicky20026838, 1 year ago

which isthe last character of string

Answers

Answered by vaivasvat
0
str.charAt(str.length() - 1)is usually the last character in the string; but consider what happens if str is empty, or null.

Hope it helps

plzz mark as brainlist
Answered by harshisingh
0
public class main
{
public static void main (string [] )
{
string s = "test string";
//char last char = ???
}
}
Similar questions