Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28282
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Problem with for |
| Date | 2014-04-27 16:22 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <i24rl9dbig18mq2hr0lr0ln7jn6khdcm5j@4ax.com> (permalink) |
| References | <e2c90ffd-b887-4257-8924-e1734d75de0a@googlegroups.com> |
On Sun, 27 Apr 2014 10:55:00 -0700 (PDT), Venom Lust <lucas__bertollo@hotmail.com> wrote, quoted or indirectly quoted someone who said : > for(int i = 0 ; i < text.length();i++); Have a look at the standard loop patterns in http://mindprod.com/jgloss/javacheat.html#LOOPS _for_ is tricky. Every one of the semicolons has to be just so. Often the compiler does not warn you in an intelligible way if you misplace them. One of my favourite errors is to put a ; after the ++. Normally in Java ; is a terminator not a separator. Couple thoughts. _a_ is not a very good name for a length variable. Why did you compute it then never use it? -- Roedy Green Canadian Mind Products http://mindprod.com Computers are like Old Testament gods; lots of rules and no mercy. ~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll 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