Re: learning loops
From: Mike B (mrcics2000-news-nomail_at_nomail.yahoo.com)
Date: 11/29/04
- Next message: Mick: "Re: <SELECT multiple..."
- Previous message: Steve: "JRun and using a java debugger"
- In reply to: Danny Gopie: "learning loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 12:30:01 -0600
Danny Gopie <ouygiytf@jhgvkuy.nl> wrote:
> 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++) {
Change this to
for (int i = 0; i < 10; i++) {
> int a = i * getal;
> System.out.println(a);
> }
> }
> }
-- Mike B
- Next message: Mick: "Re: <SELECT multiple..."
- Previous message: Steve: "JRun and using a java debugger"
- In reply to: Danny Gopie: "learning loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|