Initialiser un tableau static

Author:


{filelink=12430}

import java.util.*;
import java.io.*;
class InitialisationTableauStatiq {
static Integer[] tableauInteger;
static {
  tableauInteger= new Integer[] {
        new Integer(1)
        ,new Integer(2)
        ,new Integer(3)
        ,new Integer(4), 
     };
}
  public static void main(String args[]) {
    for (int i=0;i

A Voir sur le même Sujet:

  • initialiser un tableau en java
  • initialiser tableau java
  • initialisation tableau de classe static

Leave a Reply

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