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


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

Re: Problem with for

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!border2.nntp.ams2.giganews.com!backlog4.nntp.ams3.giganews.com!backlog4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail
NNTP-Posting-Date Sun, 27 Apr 2014 13:15:05 -0500
Date Sun, 27 Apr 2014 19:15:05 +0100
From lipska the kat <lipskathekat@example.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Problem with for
References <e2c90ffd-b887-4257-8924-e1734d75de0a@googlegroups.com>
In-Reply-To <e2c90ffd-b887-4257-8924-e1734d75de0a@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <oOydnVECnqa01MDOnZ2dnUVZ7qKdnZ2d@bt.com> (permalink)
Lines 28
X-Usenet-Provider http://www.giganews.com
X-AuthenticatedUsername NoAuthUser
X-Trace sv3-YlAQL20TWtkqlcnApkjgLkd7l9Ee118PoXsdS+D1BQ7m2DH/u3CMibgHHbcWABE5EyPU4ppFADOVKkE!Qg/pI2PV8nm4Zlx+bG2HiIKm87X6ZIvqPEKedn+SbkOV2YiBGCvYXykNId/tlXT6IgfbW5kJ4NI=
X-Complaints-To abuse@btinternet.com
X-DMCA-Complaints-To abuse@btinternet.com
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2208
Xref csiph.com comp.lang.java.programmer:28264

Show key headers only | View raw


On 27/04/14 18:55, Venom Lust wrote:
>      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?

Try removing the ; at the end of the line
for(int i = 0 ; i < text.length();i++); <---- remove this semi-colon


-- 
lipska the kat - treacherous feline.
Proudly nominated for IPOTY 2014 - LIGAF
GNU/Linux user #560883 - linuxcounter.net

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | 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