This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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%
 
Do you pee on your compost? Does this tiny ad?
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!