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 8 of 8

Thread: Code is not printing how I want it to

  1. #1
    Member
    Join Date
    Sep 2012
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Code is not printing how I want it to

    khjhj
    Last edited by redbull; May 9th, 2015 at 04:39 PM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    23,890
    Thanks
    62
    Thanked 2,533 Times in 2,503 Posts

    Default Re: Code is not printing how I want it to

    my code is not printing how i want it to
    Please post the code's output, add some comments that explain what is wrong with the output and post what you want the output to look like.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Sep 2012
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Code is not printing how I want it to

    gjhg
    Last edited by redbull; May 9th, 2015 at 04:39 PM.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    23,890
    Thanks
    62
    Thanked 2,533 Times in 2,503 Posts

    Default Re: Code is not printing how I want it to

    To make the second class within the first,
    See the tutorial: Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    there are three different types of objects
    Can you list the different types? I'm not sure I understand what you mean.

    why are some objects return objects and others not.
    Same question. What do you mean here?

    I'm only getting the last input printed out
    Can you copy the full contents of the console window from when you execute the program and paste it here.
    Add some comments where the program didn't do what you wanted.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Member
    Join Date
    Sep 2012
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Code is not printing how I want it to

    lkhkjhhj
    Last edited by redbull; May 9th, 2015 at 04:39 PM.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    23,890
    Thanks
    62
    Thanked 2,533 Times in 2,503 Posts

    Default Re: Code is not printing how I want it to

    Dinner time here. Be back in an hour.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Member
    Join Date
    Sep 2012
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Code is not printing how I want it to

    hkjhkj
    Last edited by redbull; May 9th, 2015 at 04:39 PM.

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    23,890
    Thanks
    62
    Thanked 2,533 Times in 2,503 Posts

    Default Re: Code is not printing how I want it to

    What are objects
    Try google. That's a huge topic way past what anyone can answer here.
    how do I use the built in toString() object
    Here is a basic misunderstanding that will make it hard for anyone to communicate with you about OOP.
    toString() is a method not an object.

    See the tutorial: The Really Big Index
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: September 28th, 2011, 07:29 AM
  2. Help in printing trees
    By cool_97 in forum What's Wrong With My Code?
    Replies: 18
    Last Post: July 23rd, 2011, 04:46 PM
  3. Beginner trying to write Java code, has issue w/ printing result and 2 decimals
    By flpanthers1 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 5th, 2011, 11:11 AM
  4. [SOLVED] Printing Array without printing empty elements
    By CarlMartin10 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 12th, 2010, 02:41 AM
  5. Code not printing correctly
    By Movies32 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 6th, 2010, 02:59 PM

Tags for this Thread