File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Further problems with this program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Further problems with this program" Watch "Further problems with this program" New topic

Further problems with this program

Claire Saunders

Joined: Sep 29, 2009
Posts: 5
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

Joined: Sep 26, 2009
Posts: 188
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:
subject: Further problems with this program
jQuery in Action, 3rd edition