Results 1 to 5 of 5

Thread: quick problem

  1. #1
    Boomer1 is offline Member
    Join Date
    Oct 2009
    Posts
    20
    Rep Power
    0

    Default quick problem

    Which of the following could be the last legally coded line of a method declared as public static int getVal (double sum)?

    Return;
    Return 77;
    Both?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Better in order to start a helpful discussion is for you to first give what you think is the correct answer and why.

    Much luck!

  3. #3
    Boomer1 is offline Member
    Join Date
    Oct 2009
    Posts
    20
    Rep Power
    0

    Default

    I agree, it is homework for me this week and the book we have for class is not highly rated for the reason of being unclear and very technical for starters. Thank you .

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Boomer1 View Post
    I agree, it is homework for me this week and the book we have for class is not highly rated for the reason of being unclear and very technical for starters. Thank you .
    You're welcome. If the book is not the best, there are plenty of tutorials that you can refer to before you come here asking for direct answers for your homework. Again, I invite you to give us your answer first, and again, best of luck.

  5. #5
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    Not only that its probably a 5 line program to actually "test it yourself" to see which works and which doesn't. Your computer won't blow up it you try it!

Similar Threads

  1. quick question
    By vouslavous in forum Java Applets
    Replies: 4
    Last Post: 04-24-2009, 09:35 PM
  2. Quick reg. expression help
    By RR_QQ in forum New To Java
    Replies: 4
    Last Post: 02-10-2009, 08:51 PM
  3. Need help quick!
    By Manikyr in forum New To Java
    Replies: 11
    Last Post: 01-28-2009, 05:08 AM
  4. Quick Question
    By Graeme in forum New To Java
    Replies: 4
    Last Post: 01-08-2009, 09:01 PM
  5. Quick Help Please! Can't Run Code!!
    By VinceGuad in forum Eclipse
    Replies: 4
    Last Post: 01-16-2008, 04:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •