• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Further problems with this program

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic