Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: What is the output of this program supposed to be and what am I doing wrong? (long one)

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Location
    The Batcave, USA
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy What is the output of this program supposed to be and what am I doing wrong? (long one)

    leaving this forum
    Last edited by Wrathbat; August 3rd, 2014 at 03:22 PM.


  2. #2
    Junior Member
    Join Date
    Jul 2014
    Location
    The Batcave, USA
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: What is the output of this program supposed to be and what am I doing wrong? (long one)

    Is everyone sick of my dumb questions

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,085
    My Mood
    Mellow
    Thanks
    184
    Thanked 653 Times in 640 Posts

    Default Re: What is the output of this program supposed to be and what am I doing wrong? (long one)

    Once you ran the code, couldn't you follow the logic to see why the result is as below?

    just for
    any not more
    It's breakfast
    !

    If not, what questions did you have?

  4. #4
    Junior Member
    Join Date
    Jul 2014
    Location
    The Batcave, USA
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: What is the output of this program supposed to be and what am I doing wrong? (long one)

    Quote Originally Posted by GregBrannon View Post
    Once you ran the code, couldn't you follow the logic to see why the result is as below?

    just for
    any not more
    It's breakfast
    !

    If not, what questions did you have?
    ...That information is in the OP.

Similar Threads

  1. My program always gives me an output of 0.0, what's wrong with it?
    By thepiranha in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 30th, 2013, 11:29 PM
  2. My output is in the wrong order! (if-else) PLEASE HELP
    By Carecinos in forum What's Wrong With My Code?
    Replies: 4
    Last Post: June 26th, 2013, 09:38 AM
  3. Wrong with my Code i think. it's not supposed to be like this :(
    By Nahoyman78 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 8th, 2012, 09:11 AM
  4. Replies: 6
    Last Post: November 25th, 2011, 02:58 PM
  5. I dont see why this program is not doing what it is supposed to
    By Leprechaun_hunter in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 12th, 2011, 08:24 AM

Tags for this Thread