Java

Fermé
lafa73 Messages postés 39 Date d'inscription vendredi 7 mars 2008 Statut Membre Dernière intervention 27 octobre 2008 - 8 avril 2008 à 16:53
UaLShark Messages postés 191 Date d'inscription vendredi 19 mai 2006 Statut Membre Dernière intervention 21 juillet 2010 - 8 avril 2008 à 18:23
Bonjour,
sv pouvez vous m aider comemnt creer et remplir un tableau statique en java merci
A voir également:

1 réponse

UaLShark Messages postés 191 Date d'inscription vendredi 19 mai 2006 Statut Membre Dernière intervention 21 juillet 2010 35
8 avril 2008 à 18:23
class MyClass
{
static int myTab[Integer.MAX_VALUE]; // Tu peux remplacer Integer.machin par une valuer Entière
//Instanciation en permier temp

static void myProc()
{
MyClass.myTab[0] = 0; ...... // Iniatialisation dans un second temp
// ou une boucle
}
}
// ou bien static int myTab[3] = {0,1,2};//Instanciation + initialisation
0