• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Need help with program.

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 15729
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 15729
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
They weren't very bright, but they were very, very big. Ad contrast:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic