Re: learning loops

From: Mike B (mrcics2000-news-nomail_at_nomail.yahoo.com)
Date: 11/29/04


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 


Relevant Pages

  • Re: ELF binary type "0" not known.
    ... >> I have this error message when i'm wanting to start mozilla for example. ... >> some of you know whats wrong and what I can do to get it working again? ...
    (freebsd-hackers)
  • Re: Info Problem
    ... > Every time I try to run info I get the following error message ... > Whats wrong here, and what should I do to fix it? ... Iocane powder! ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)
  • Re: [opensuse] Windows dont wobble
    ... Have fun! ... Whats the error message? ...
    (SuSE)
  • Re: error 4363
    ... can't send any emails anymore. ... > whats wrong here, anyone know? ... MVP office:macintosh ...
    (microsoft.public.mac.office.entourage)
  • Re: Info Problem
    ... >Every time I try to run info I get the following error message ... >Whats wrong here, and what should I do to fix it? ... man install-info for details... ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)