• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please help with object array  RSS feed

 
Keano Denton
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am taking an online java course, and our second assignment is to create an application that will display the weeks sales information. Using an array and loops. I have been working on this for 4 days and finally am asking for help. I know I'm doing something wrong, probably completely wrong, but I want to figure this out. And I obviously can't do it on my own. Which is very upsetting. Here is what I have written, and for some reason I can't fill the array before it outputs, and also I am not quite sure how to do the main method. I would really appreciate any help from. Thank you to any and all who can help me learn this.




 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried to debug your program?
Why are you using Scanner in WeeklySales and Sales? One you are using in Test class is sufficient to get user input.
Scanner in WeeklySales and Sales makes program to wait for user to take action, hence nothing happens.

Manish
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!