fin
This commit is contained in:
18
DEV2.1/Heritage/Documentation.java
Normal file
18
DEV2.1/Heritage/Documentation.java
Normal file
@@ -0,0 +1,18 @@
|
||||
/*La classe String vient du package java.lang et hérite de la classe
|
||||
Object. Il y a 8 méthodes transmise de Object.*/
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Documentation {
|
||||
public void Majuscule(String[] args) {
|
||||
System.out.print(args[0].toUpperCase());
|
||||
for (int i=1; i<args.length; i++){
|
||||
System.out.print(" "+args[i].toUpperCase());
|
||||
}
|
||||
System.out.println();
|
||||
}
|
||||
public void Base16(String[] args) {
|
||||
int n=Integer.parseInt(args[0],8);
|
||||
System.out.println(Integer.toHexString(n));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user