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 help printing output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help printing output" Watch "help printing output" New topic

help printing output

Troy Johnson

Joined: Sep 24, 2003
Posts: 20
Hello again. I am having trouble figuring out how to print and display the output of my code. I am trying to display the information when the program runs in the following manor:
Team 1 is up to bat:
Jason Crisp (average = 300.0) is out.
Rusty Johnson (average = 170.0) gets a hit.
Team 2 is up to bat:
Kevin McArthur (average = 375.0) is out.
Jason Harpham (average = 210.0) is out.
Could anyone offer any other suggestions or insight to what I am doing wrong. Thanks again.
Here is my code:
Lisa D'Aniello
Ranch Hand

Joined: Sep 25, 2003
Posts: 42
At first glance, you're storing all of your player data in the same array index.
Hope this helps a little bit,
Lisa M.
I agree. Here's the link:
subject: help printing output
It's not a secret anymore!