Re: learning loops

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


Date: Mon, 29 Nov 2004 18:27:36 +0100

im sorry, stupid i forgot to make an int first
"Danny Gopie" <ouygiytf@jhgvkuy.nl> schreef in bericht
news:78a30$41ab59b4$513b6900$10573@news1.zonnet.nl...
> 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);
> }
> }
> }
>



Relevant Pages