Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string to char in java

// getting single character from string..
String str="abcd";

char c=str.toChar(0); 

System.out.println("output is "+c); // output is a
 
PREVIOUS NEXT
Tagged: #string #char #java
ADD COMMENT
Topic
Name
8+8 =