learning loops
From: Danny Gopie (ouygiytf_at_jhgvkuy.nl)
Date: 11/29/04
- Next message: Danny Gopie: "Re: learning loops"
- Previous message: Frances Del Rio: "Re: loading a servlet in a frame.."
- Next in thread: Danny Gopie: "Re: learning loops"
- Reply: Danny Gopie: "Re: learning loops"
- Reply: Mike B: "Re: learning loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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);
}
}
}
- Next message: Danny Gopie: "Re: learning loops"
- Previous message: Frances Del Rio: "Re: loading a servlet in a frame.."
- Next in thread: Danny Gopie: "Re: learning loops"
- Reply: Danny Gopie: "Re: learning loops"
- Reply: Mike B: "Re: learning loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]