Код: Выделить всё
int total = 50;
resto = total / 16;
String decimal = Integer.toHexString(resto);
System.out.println(decimal);
Подробнее здесь: https://stackoverflow.com/questions/499 ... al-in-java
Код: Выделить всё
int total = 50;
resto = total / 16;
String decimal = Integer.toHexString(resto);
System.out.println(decimal);