#FIG 3.2 Landscape Center Inches A4 100.00 Single -2 1200 2 2 4 0 1 0 7 0 0 -1 0.000 0 0 7 0 0 5 12900 9900 12900 300 300 300 300 9900 12900 9900 4 1 0 0 0 18 24 0.0000 4 360 4425 6600 900 Premier programme Java\001 4 0 0 100 0 18 20 0.0000 4 270 4590 1200 1800 (indentation de type GNU utilis\351e)\001 4 0 0 100 0 14 20 0.0000 4 255 4620 1200 2700 /* This is a java program */\001 4 0 0 100 0 14 20 0.0000 4 240 2145 1200 3300 class Example\001 4 0 0 100 0 14 20 0.0000 4 225 165 1200 3600 {\001 4 0 0 100 0 14 20 0.0000 4 255 3300 1200 3900 // the entry point\001 4 0 0 100 0 14 20 0.0000 4 240 6600 1200 4200 public static void main(String args[])\001 4 0 0 100 0 14 20 0.0000 4 225 495 1200 4500 {\001 4 0 0 100 0 14 20 0.0000 4 225 2310 1200 4800 int n = 5;\001 4 0 0 100 0 14 20 0.0000 4 225 1650 1200 5100 int i;\001 4 0 0 100 0 14 20 0.0000 4 225 4290 1200 5400 for(i = 0; i < n; i++)\001 4 0 0 100 0 14 20 0.0000 4 225 1155 1200 5700 {\001 4 0 0 100 0 14 20 0.0000 4 240 8910 1200 6000 System.out.println("The value of i is: " + i);\001 4 0 0 100 0 14 20 0.0000 4 225 1155 1200 6300 }\001 4 0 0 100 0 14 20 0.0000 4 225 495 1200 6600 }\001 4 0 0 100 0 14 20 0.0000 4 225 165 1200 6900 }\001