![](//s1.studylibfr.com/store/data-gzf/1c77a40502dcd1e4271899f070003757/1/003656157.htmlex.zip/bg3.jpg)
2) Types simples et instructions
Les types simples
byte short int long
float double
boolean
char
Chaînes de caractères String (voir l’API)
Tableau (voir l’API Arrays) int[] premiers = {2,3,5,7,11,13};
int[] pairs;
pairs = new int[]{0,2,4,6,8};
int[] anonyme = new int[5];
Instruction if else, switch, for, while, do while
Exemple PGCD, Premier, Erathosthene