permaculture playing cards*
The moose likes Beginning Java and the fly likes Printing out of an data stored in and array and SringBuffer array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Printing out of an data stored in and array and SringBuffer array" Watch "Printing out of an data stored in and array and SringBuffer array" New topic
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: 984

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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Printing out of an data stored in and array and SringBuffer array
 
Similar Threads
Need some urgent help
I cannot fix this program! if anyone can help!
storing an array in a meathod problem...
Help with an array situation
Need Help with Indexes