Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28261

Problem with for

Newsgroups comp.lang.java.programmer
Date 2014-04-27 10:55 -0700
Message-ID <e2c90ffd-b887-4257-8924-e1734d75de0a@googlegroups.com> (permalink)
Subject Problem with for
From Venom Lust <lucas__bertollo@hotmail.com>

Show all headers | View raw


    public void writeText(String text)
    {
        char tmpchar;
        int a = text.length();
        for(int i = 0 ; i < text.length();i++);
        {
            jTextArea1.setText(jTextArea1.getText() + text.charAt(i));
            try {            
                Thread.sleep(500);
            } catch (InterruptedException ex) {
                Logger.getLogger(IJFMain.class.getName()).log(Level.SEVERE, null, ex);
            }
        }


it says at text.charAt(i) that i doesnt exists and at for it says something like supress warning empty statement.

anyone knows whats happening?

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Problem with for Venom Lust <lucas__bertollo@hotmail.com> - 2014-04-27 10:55 -0700
  Re: Problem with for Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-04-27 14:04 -0400
    Re: Problem with for lipska the kat <lipskathekat@example.com> - 2014-04-27 20:07 +0100
      Re: Problem with for leif.roar@invalid.com (Leif Roar Moldskred) - 2014-04-27 15:56 -0500
  Re: Problem with for lipska the kat <lipskathekat@example.com> - 2014-04-27 19:15 +0100
    Re: Problem with for Venom Lust <lucas__bertollo@hotmail.com> - 2014-04-27 11:29 -0700
    Re: Problem with for Venom Lust <lucas__bertollo@hotmail.com> - 2014-04-27 11:31 -0700
    Re: Problem with for Venom Lust <lucas__bertollo@hotmail.com> - 2014-04-27 11:34 -0700
  Re: Problem with for Venom Lust <lucas__bertollo@hotmail.com> - 2014-04-27 11:17 -0700
  Re: Problem with for Roedy Green <see_website@mindprod.com.invalid> - 2014-04-27 16:22 -0700

csiph-web