| Author |
Printing out of an data stored in and array and SringBuffer array
|
jon ladd
Ranch Hand
Joined: Feb 11, 2003
Posts: 53
|
|
I am now on the Case were want display my data. When I press 3 I want to display all the data that is stored in the arrays Jim and I have it so it displays the student names but when we try to do the Stringbuffer major it gives a weird print out. But since this is a stringbuffer don�t I have to change the to a string before I print it if so were would this go in the print heading. Also on the int arrayCredits how does that display i have tried a variety of steps and came up empty handed. Is what I have at all right now eve close? Thanks for any input.
|
 |
William Barnes
Ranch Hand
Joined: Mar 16, 2001
Posts: 965
|
|
What is:
|
Please ignore post, I have no idea what I am talking about.
|
 |
jon ladd
Ranch Hand
Joined: Feb 11, 2003
Posts: 53
|
|
|
opps that not suppose to be there
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
|
I think that major[i].toString() could do the trick.
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
Alex McCormick
Ranch Hand
Joined: Mar 08, 2003
Posts: 31
|
|
|
Jon, what import statements are you using in this one? Just curious as I'm trying to compile this but I'm getting a ton of errors, so I'm assuming that I'm missing an API or something. thanks!
|
 |
 |
|
|
subject: Printing out of an data stored in and array and SringBuffer array
|
|
|