Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

print character in string java

String name = "John";
System.out.println(name.charAt(2));
// prints character 'h' to terminal
 
PREVIOUS NEXT
Tagged: #print #character #string #java
ADD COMMENT
Topic
Name
5+7 =