user1710911 user1710911 - 4 months ago 27
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);