public class Test {

public static void main(String[] args) {

System.out.println("10진수 -> 16진수");

System.out.println("10 -> " +Integer.toHexString(10));

System.out.println();

System.out.println("16진수 -> 10진수");

System.out.println("A -> " +  Integer.parseInt("A", 16));

}

}





+ Recent posts