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 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: 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 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