Answers for "convert to ascii value in java"

1

convert int to ascii java

int yourInt = 33;
char ch = (char) yourInt;
System.out.println(yourInt); // 33
System.out.println(ch); // !
Posted by: Guest on October-26-2020
1

string into ascii in java

// A simple cast from String to int will do the job
String me = "a";
int me_ASCII = (int) me;
// 97
Posted by: Guest on April-20-2021

Code answers related to "convert to ascii value in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language