18 lines
535 B
Java
18 lines
535 B
Java
/*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));
|
|
}
|
|
} |