Fin du TP Heritage
This commit is contained in:
17
DEV2.1/TP05/Documentation.java
Normal file
17
DEV2.1/TP05/Documentation.java
Normal file
@@ -0,0 +1,17 @@
|
||||
// La classe String se trouve dans le package java.lang
|
||||
// Elle hérite de la classe Object
|
||||
// Il existe 8 méthodes héritées de la classe Object
|
||||
|
||||
|
||||
public class Documentation {
|
||||
public static void main(String[] args) {
|
||||
if (args.length == 0) {
|
||||
System.out.println("Aucun argument en ligne de commande.");
|
||||
}
|
||||
else {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
System.out.println(args[i].toUpperCase());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user