• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with program.

 
Devon Lewis
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I compile and run the following code it prints out 0.0 and null for four of the values.
 
Stephan van Hulst
Bartender
Posts: 6583
84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Devon, welcome to CodeRanch!

As it is now, you'll have a hard time getting your question answered. Your code is unformatted, too long, and we have no idea what it's supposed to do.

Take a look at these links and please try again:
- TellTheDetails
- IsolateTheProblem
- UseCodeTags
 
Devon Lewis
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:Hi Devon, welcome to CodeRanch!

As it is now, you'll have a hard time getting your question answered. Your code is unformatted, too long, and we have no idea what it's supposed to do.

Take a look at these links and please try again:
- TellTheDetails
- IsolateTheProblem
- UseCodeTags
The program is supposed to get the information about Courses a student is taking.
 
Stephan van Hulst
Bartender
Posts: 6583
84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I edited your post so it uses code tags correctly. Your code is still too long, you really should try to narrow down the part of the code that's broken. Test your methods individually using println() statements to find out if they are working as expected.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!