Boucle ‘for’: Comment Parcourir le contenu d’un tableau de ‘int’

Author:


{filelink=4392}

public class ExempleBoucleFor {
    public static void main(String[] args) {
        int[] tableauDeInts = { 1660, 1760, 3, 6975, 20, 600, 2100, 93, 622, 6800 };

        for (int i = 0; i < tableauDeInts.length; i++) {
            System.out.print(tableauDeInts[i] + " ");
        }
        System.out.println();
    }
}

A Voir sur le même Sujet:

  • comment parcourir image en une boucle

Leave a Reply

Your email address will not be published. Required fields are marked *