public class DecimalToHex {
public static void main(String[] args) {
int decimal = 10; // Example decimal number
String hex = Integer.toHexString(decimal);
System.out.println(hex.toUpperCase());
}
}
A