Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Any Debuggers Out There?  RSS feed

 
Kerry Cotter
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
 
Joel Christophel
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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • 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%
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!