• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Any Debuggers Out There?  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my code:


This is what javac returned (after I fixed 10 errors)

Kerry-Cotters-iMac:introcs kcotter01$ javac PhraseOMatic
error: Class names, 'PhraseOMatic', are only accepted if annotation processing is explicitly requested
1 error
 
Ranch Hand
Posts: 250
1
Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error is on line 15. There are two typing mistakes there.

I'd look into downloading an IDE such as Eclipse. They're very handy for debugging (and much more), and they point out errors even as you type.
 
Rancher
Posts: 42975
76
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting, here's what I get on OS X 10.6 with Java 1.6.0_51 with consecutive fixing of the issues reported:

[~] ulf% javac PhraseOMatic.java
PhraseOMatic.java:15: cannot find symbol
symbol : variable wordLListThree
location: class PhraseOMatic
int threeLength = wordLListThree.Length;
^
1 error
[~] ulf% javac PhraseOMatic.java
PhraseOMatic.java:15: cannot find symbol
symbol : variable Length
location: class java.lang.String[]
int threeLength = wordListThree.Length;
^
1 error
[~] ulf% javac PhraseOMatic.java
[~] ulf% java PhraseOMatic
What we need is a mahallog-forcePersians
[~] ulf%
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!