user1710911 user1710911 - 6 months ago 33
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);