A blog dedicated to coding
String x = Integer.toString(10, 16); System.out.println(x);//prints a
int y = Integer.valueOf("a", 16); System.out.println(y); //prints 10
No comments:
Post a Comment