Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get first character of string java

var string = "freeCodecamp";

string.charAt(0); // Returns "f"
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #character #string #java
ADD COMMENT
Topic
Name
1+7 =