iterator()

iterator() - Java - Programmation

Marsh Posté le 13-05-2007 à 18:18:58    

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!!!

Reply

Marsh Posté le 13-05-2007 à 18:18:58   

Reply

Marsh Posté le 13-05-2007 à 21:09:58    

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

Reply

Marsh Posté le 13-05-2007 à 21:16:38    

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?
Reply

Marsh Posté le 14-05-2007 à 11:31:54    

ba jai pa tro compris sinon jorai pas demander :s

Reply

Marsh Posté le 14-05-2007 à 11:35:32    

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?
Reply

Marsh Posté le 15-05-2007 à 12:43:15    

sur le net g cherché

Reply

Marsh Posté le 15-05-2007 à 12:50:44    

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?
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed