which isthe last character of string
Answers
Answered by
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
Hope it helps
plzz mark as brainlist
Answered by
0
public class main
{
public static void main (string [] )
{
string s = "test string";
//char last char = ???
}
}
{
public static void main (string [] )
{
string s = "test string";
//char last char = ???
}
}
Similar questions