Search:

Type: Posts; User: stevenroberts

Search: Search took 0.15 seconds.

  1. Re: Toggling function behavior over time

    Looking better now but I do get the following compilation failure when I try and test.

    lightCycle(int,boolean) in LightController cannot be applied to (int)



    /**
    * Expands the diameter...
  2. Re: Toggling function behavior over time

    Thanks Norm.

    I have had a little play around and what I have so far is below. It still is only doing the first step in increase the size but then not decreasing.

    Any ideas why?



    /** ...
  3. Toggling function behavior over time

    Hi,

    I have two classes LightController & Circle. I am trying to create a method to do the following.

    1. Increase the size of the circle by increments of 2 as created in grow()
    2. Once it has...
  4. Replies
    6
    Views
    272

    [SOLVED] Re: Increment Instant Method - Help

    Thanks Norm sorted it now.
  5. Replies
    6
    Views
    272

    [SOLVED] Re: Increment Instant Method - Help

    Yes so it increases the diameter by 2 until it reaches the size specified and then stops.
  6. Replies
    6
    Views
    272

    [SOLVED] Re: Increment Instant Method - Help

    Sorry the biggest problem with it that I have is how would I get it to increment the diameter of the circle by 2 each time until it reaches the specified size?
  7. Replies
    6
    Views
    272

    [SOLVED] Increment Instant Method - Help

    Hi,

    I have two classes LightController & Circle. I am trying to create a method to do the following.

    1.Grows the diameter of the circle referenced by the receiver's instance variable light, to...
  8. Replies
    1
    Views
    278

    [SOLVED] Creating a Constructor - Help

    Hi,

    I have two classes LightController & Circle. I need to use the LightController class to do the following:

    Creates an instance of Circle with a diameter of 50 and a colour of OUColour.GREEN...
  9. Replies
    4
    Views
    245

    [SOLVED] Urgent - How to increase value

    Hi,

    I am having real problems being able to do this as I have spent two days on this and have not got anywhere with it.

    What I want to do is take the constructor to set the number instance...
  10. Replies
    4
    Views
    245

    [SOLVED] Re: Increment Value

    Hi Kevin,

    Sorry if this seems like a silly question but how would I do that?

    Cheers,
    Steven
  11. Replies
    4
    Views
    245

    [SOLVED] Urgent! - How To Increment Value

    Hi,

    In need of some help as I have been playing around all day trying to get this to increase the value of number by one after each new runner is added. Anybody able to help me get the value of...
  12. Replies
    3
    Views
    177

    [SOLVED] Re: NullPointerException Error

    Hi Norn,

    Full error message is below:

    java.lang.NullPointerException
    in FitnessFrog.sprint(FitnessFrog.java:95)
    in Coach.train(Coach.java:99)
    in (OUWorkspace:1)

    Cheers.
  13. Replies
    3
    Views
    177

    [SOLVED] NullPointerException Error

    Hi,

    I keep receiving a NullPointerException and have been unable to find a way to resolve it. Any assistance would be much appreciated.



    public class FitnessFrog extends Frog
    {
    //...
Results 1 to 13 of 13