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

  FORUM HardWare.fr
  Programmation
  Java

  iterator()

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

iterator()

n°1559646
jo08
Posté le 13-05-2007 à 18:18:58  profilanswer
 

bonjour,
J'aimerais avoir de l'aide sur une methode que je ne compren pa
 
                        for (Iterator kp = lesPoints.iterator(); kp.hasNext();) {
   Point p = (Point) kp.next();
   g.fillOval(p.x - 2, p.y - 2, 4, 4);
 
 
ainsi que sa
 
 try {
   PrintStream sortie = new PrintStream("coordonees.txt" );
   Iterator iter = lesPoints.iterator();
   while (iter.hasNext())
   sortie.println(iter.next());
   sortie.close();
  } catch (FileNotFoundException e) {
   e.printStackTrace();
   return;
  }
 
si vous pouviez mettre des commentaires pour que je comprenne mieux se qui se passe ce serai gentil merci!!!

mood
Publicité
Posté le 13-05-2007 à 18:18:58  profilanswer
 

n°1559736
jo08
Posté le 13-05-2007 à 21:09:58  profilanswer
 

je vois ke personne ne repond donc j'orai une autre question ce serai pour expliquer la notion d'iterator

n°1559743
masklinn
í dag viðrar vel til loftárása
Posté le 13-05-2007 à 21:16:38  profilanswer
 

Ca te dirait pas de lire la documentation?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1559944
jo08
Posté le 14-05-2007 à 11:31:54  profilanswer
 

ba jai pa tro compris sinon jorai pas demander :s

n°1559950
masklinn
í dag viðrar vel til loftárása
Posté le 14-05-2007 à 11:35:32  profilanswer
 

Quelle documentation as tu lu?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1560630
jo08
Posté le 15-05-2007 à 12:43:15  profilanswer
 

sur le net g cherché

n°1560638
masklinn
í dag viðrar vel til loftárása
Posté le 15-05-2007 à 12:50:44  profilanswer
 

Super, et si tu répondais à la question que j'ai posé?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?

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

  iterator()

 

Sujets relatifs
Implémenter l'interface Iterator[résolu] [qst] [débutant] Opérations pdt un parcours avec Iterator ?
Problème avec les Vectors ( return ((vector<_Key>::iterator)NULL;)Iterator a la maison ou au front?
IteratorBufferedReader qui implémente Iterator
Boucle for et list::iteratorSTL - multimap - ou le mystère de l'iterator perdu (non résolu)
Iteratortemplate iterator héritage, OK pour visual, Erreurs avec Gcc
Plus de sujets relatifs à : iterator()


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)