• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to get desired output for Java GPA calculator  RSS feed

 
thomas lim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently having a problem displaying the desired output for my GPA calculator which makes use of arrays. I got a different output instead.How do I solve this problem?

Desired output:

My output:



This is my Module class to create a Module object.
    
   
   
This is my Student class which contains methods to receive inputs and validate them.

 
   
This is my StudentUser class which contains the main method to call all other methods from Student and also call the array from Student.

   
        




       
       
       
       
       
       
          

 
Knute Snortum
Sheriff
Posts: 4276
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked whether Student#returninput() actually is returning anything?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!