Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1677 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  taille d'un tableau en Java ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

taille d'un tableau en Java ?

n°673672
jerem38
Posté le 14-03-2004 à 23:52:21  profilanswer
 

j'ai une petite question toute bete en java :
public static void main (String[] args)
 
Comment faire pour savoir si la personne qui lance le pgm le lance bien avec 2 arguments ? (args[0] et args[1])
 
 :hello:

mood
Publicité
Posté le 14-03-2004 à 23:52:21  profilanswer
 

n°673674
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 15-03-2004 à 00:02:38  profilanswer
 

args.length


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°673681
the real m​oins moins
Posté le 15-03-2004 à 00:26:23  profilanswer
 

catch (IndexOfOutBoundsException ex) [:joce]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°673683
nraynaud
lol
Posté le 15-03-2004 à 00:31:13  profilanswer
 

http://java.sun.com/docs/books/jls [...] html#64347


---------------
trainoo.com, c'est fini
n°673737
dem0ntibul
Posté le 15-03-2004 à 08:29:03  profilanswer
 

public static void main(String [] args) {
  if (args.length > 2)
  System.exit(0);
}


Message édité par dem0ntibul le 15-03-2004 à 13:48:43
n°673745
darklord
You're welcome
Posté le 15-03-2004 à 08:38:04  profilanswer
 

dem0ntibul a écrit :

public static void main(String [] args) {
  if (args.length < 2)
  System.exit(0);
}


 
Ptain super le code. Si ca a 0 ou 1 arguments le programme s'arrete simplement sans donner d'explications. Si tu passe 24 arguments, aucun problème [:mlc]
 
j'espère que tu ne fais pas d'interfaces utilisateurs [:joce]


---------------
Just because you feel good does not make you right
n°673750
uriel
blood pt.2
Posté le 15-03-2004 à 08:41:49  profilanswer
 

dem0ntibul a écrit :

public static void main(String [] args) {
  if (args.length < 2)
  System.exit(0);
}


 
[:halm] enculé d'utilisateurs, il va comprendre sa douleur....


Message édité par uriel le 15-03-2004 à 08:42:30

---------------
IVG en france
n°673752
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 15-03-2004 à 08:42:46  profilanswer
 

Avec un a : [:halm]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°673754
uriel
blood pt.2
Posté le 15-03-2004 à 08:44:16  profilanswer
 

Taiche a écrit :

Avec un a : [:halm]


 
edited :O


---------------
IVG en france
n°674023
dem0ntibul
Posté le 15-03-2004 à 13:44:28  profilanswer
 

disoulé
 
je sors !


Message édité par dem0ntibul le 15-03-2004 à 13:48:52
mood
Publicité
Posté le 15-03-2004 à 13:44:28  profilanswer
 

n°674650
jerem38
Posté le 15-03-2004 à 22:28:06  profilanswer
 

merci pour vos réponse :)  
lol


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  taille d'un tableau en Java ?

 

Sujets relatifs
[JAVA] je cherche un evenement sur une JList[PHP] Gérer un tableau à 4 dimensions
[ASM] Parcours d'un tableau "BYTE" et "WORD"question de taille d'image de fond !!!
[Java] Ecran de chargement[java] Rendre une appli java installable
Fonction java[Java] Serializable
Type de fichier en JAVA ??[JAVA] Créer du code dynamiquement
Plus de sujets relatifs à : taille d'un tableau en Java ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR