int to String and ascll (Java)

int to String

String s = String.valueOf(i);
String s = Integer.toString(i);
String s = "" + i;

For example + 97 "" = "97"

int turn ascll

(char)97 = 'a';
Published 35 original articles · won praise 2 · Views 951

Guess you like

Origin blog.csdn.net/y18771025420/article/details/103532204