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

Thread: Newbie problem

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post Newbie problem

    .
    Last edited by kingsnans; February 20th, 2015 at 12:10 PM. Reason: poo


  2. #2
    Forum VIP
    Join Date
    Oct 2010
    Posts
    275
    My Mood
    Cool
    Thanks
    32
    Thanked 54 Times in 47 Posts
    Blog Entries
    2

    Default Re: Newbie problem

    Print each of the attribute for each athlete to System.out. I'd use a different method, like
    public void printAthlete(Athlete athlete)
    {
      String name = athlete.getPlayerName();
      String position = athlete.getPlayerPosition();
      double height = athlete.getPlayerHeight();
      //Use System.out to print these.. not sure how you want it to look.
    }

  3. The Following User Says Thank You to Tjstretch For This Useful Post:

    kingsnans (October 23rd, 2011)

  4. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Newbie problem

    .
    Last edited by kingsnans; February 20th, 2015 at 12:11 PM. Reason: poo

Similar Threads

  1. Newbie problem
    By Vigge645 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 27th, 2011, 06:15 AM
  2. Output problem (newbie)
    By Asido in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 8th, 2010, 01:19 PM
  3. newbie GUI/ event handling problem
    By zyspt in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 10th, 2010, 12:36 PM
  4. Newbie Programming problem
    By Pingu in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 17th, 2010, 02:10 AM
  5. Re: Java Newbie Code Problem
    By erinbasim in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 17th, 2010, 02:05 AM