TP06 - TP07 début

This commit is contained in:
2022-03-07 17:26:31 +01:00
parent 975abd0e19
commit a5665f3b23
24 changed files with 175 additions and 2 deletions

Binary file not shown.

View File

@@ -0,0 +1,9 @@
public class Documentation {
public static void main(String[] args) {
for (String str : args) {
System.out.println(str.toUpperCase());
}
}
}

Binary file not shown.

View File

@@ -0,0 +1,8 @@
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());
}
}
}

View File

@@ -0,0 +1,4 @@
1. java.lang.Object
2. La classe Object
3. 10 (8 dont 2 surcharges)
4. 0 ?