user1710911 user1710911 - 1 month ago 6
Java Question

Android How to get first character of string?

How to get first character of string?

string test = "StackOverflow";


first character = "S"

Answer
String test = "StackOverflow"; 
char first = test.charAt(0);
Comments