Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing out of an data stored in and array and SringBuffer array

 
jon ladd
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is:
 
jon ladd
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
opps that not suppose to be there
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that major[i].toString() could do the trick.
 
Alex McCormick
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic