user1710911 user1710911 - 10 months ago 61
Java Question

Android How to get first character of string?

How to get first character of string?

string test = "StackOverflow";


first character = "S"

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