Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Further problems with this program

 
Claire Saunders
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So having successfully fixed the mystery error of my last thread, I must move on to the new challenge of getting the code to run like it should.

The desired output for this project is a table of wins and losses, so it should read something like:

unc: 2 0
usc: 0 2
uva: 1 1

Instead, my output is

null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0
null: 0 0


So I know it's looping the correct number of times, however, somehow the information isn't getting inputted correctly. Since this is my first project with scanners, it is most likely something in the two scanners I'm using. I'm not getting any error messages anymore though. Any help would be greatly appreciated!

My complete code:


And the other class
 
Rahul P Kumar
Ranch Hand
Posts: 188
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your other class for getter setter, AccFootballTeam, you are sending something to set (mind this word), from class AnalyzeAccFootball at line 27. At least that is what you desire. So, at line 27 of class AnalyzeAccFootball, you are calling constructor of AccFootballTeam. Do you see in your constructor anything, which intends to set those values?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic