APL/APL2.1/TP06/Documentation/ToBase8.java

8 lines
237 B
Java
Raw Permalink Normal View History

2022-03-07 17:26:31 +01:00
public class ToBase8 {
public static void main(String[] args) {
for (String str : args) {
int nb = Integer.parseInt(str, 8);
System.out.println(Integer.toHexString(nb).toUpperCase());
}
}
}