learning loops

From: Danny Gopie (ouygiytf_at_jhgvkuy.nl)
Date: 11/29/04


Date: Mon, 29 Nov 2004 18:17:41 +0100

Hello,

I have this script, but get an error message, cant resolve symbol, but whats
wrong with this?

public class loop {
 public static void main(String[] args) {

 String waarde = JOptionPane.showInputDialog(null,"Voer een getal
in","invoer getal",JOptionPane.QUESTION_MESSAGE);
 int getal = Integer.parseInt(waarde);

 for (i = 0; i < 10; i++) {
     int a = i * getal;
   System.out.println(a);
 }
 }
}