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: I need help Plz

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help Plz

    Hi need help with my homework.

    can any body help??


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I need help Plz

    If you are having problems with your code, post the code and the questions.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need help Plz

    Quote Originally Posted by Norm View Post
    If you are having problems with your code, post the code and the questions.
    here is the Question

    Write an interface Sporty that has two methods: exercise(int), and getReady(),
    where those methods return no values.

    2. Write header of class ActiveHoverFrog that inherits HoverFrog class and implements
    Sporty interface. Write the following methods in class ActiveHoverFrog:

    a. Write zero argument constructor of ActiveHoverFrog, where it calls parent
    constructor to initialise inherited attributes.

    b. Implement getReady() method as follows:
    on receipt of this method, an instance should turned into Red, goes directly to height 3
    and moves one stone towards stone 6 before returning directly to ground level again.
    This is repeated until it is at stone 6.

    c. Implement exercise(int n) method as follows:
    on receipt of this method, an instance should executes the number of exercises indicated
    by the message’s argument. Each exercise consists of hovering up by 1, moving to the
    left, hovering down by 1, and moving to the right. After finishing whole exercises a
    dialog box with a message "It's Done" is displayed.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I need help Plz

    That looks like your assignment not a specific question about the code you are supposed to write.
    Pick a part of the assignment, design the code you need to solve that part, code it, compile it, test it. When it works, pick another part and do it again.
    When you have problems or questions, post you code and questoions.
    If you don't understand my answer, don't ignore it, ask a question.