13 Mars
This commit is contained in:
BIN
DEV2.1/TP4:Heritage/Documentation/Deuxieme.class
Normal file
BIN
DEV2.1/TP4:Heritage/Documentation/Deuxieme.class
Normal file
Binary file not shown.
11
DEV2.1/TP4:Heritage/Documentation/Deuxieme.java
Normal file
11
DEV2.1/TP4:Heritage/Documentation/Deuxieme.java
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
public class Deuxieme{
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (args.length <= 0){
|
||||
System.err.println("args missing");
|
||||
System.exit(1);
|
||||
} Integer parseInt8 = Integer.parseInt(args[0], 8);
|
||||
System.out.println(Integer.toHexString(parseInt8));
|
||||
}
|
||||
}
|
||||
BIN
DEV2.1/TP4:Heritage/Documentation/Premier.class
Normal file
BIN
DEV2.1/TP4:Heritage/Documentation/Premier.class
Normal file
Binary file not shown.
10
DEV2.1/TP4:Heritage/Documentation/Premier.java
Normal file
10
DEV2.1/TP4:Heritage/Documentation/Premier.java
Normal file
@@ -0,0 +1,10 @@
|
||||
import java.lang.*;
|
||||
|
||||
public class Premier{
|
||||
|
||||
public static void main(String[] args) {
|
||||
for (String arg: args){
|
||||
System.out.println(arg.toUpperCase());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user