Results 21 to 30 of 30
Thread: Hello
- 01-22-2010, 08:13 PM #21
Member
- Join Date
- Dec 2009
- Posts
- 33
- Rep Power
- 0
- 01-23-2010, 03:04 PM #22
Member
- Join Date
- Dec 2009
- Posts
- 24
- Rep Power
- 0
Hi evant
i havent got that line in my code
- 01-24-2010, 11:48 AM #23
Member
- Join Date
- Dec 2009
- Posts
- 33
- Rep Power
- 0
If you look at the first post in this thread from Aggy, the code is right apart from the > should be a <
im still struggling with the selection bit. cant get the code right for when two frogs need selecting, getting fed up of it now
- 01-24-2010, 06:21 PM #24
Member
- Join Date
- Dec 2009
- Posts
- 24
- Rep Power
- 0
Hi Evant
The line that you have given in your reply is not in the piece of code given by aggy
- 01-24-2010, 06:50 PM #25
Member
- Join Date
- Dec 2009
- Posts
- 24
- Rep Power
- 0
Hi evant
Put that line at the end of the else loop but it comes up with the error, when looking at the line " if(this.getPosition () == position)
{
this.jump
}
position has private access in frog
- 01-25-2010, 03:50 PM #26
Member
- Join Date
- Dec 2009
- Posts
- 24
- Rep Power
- 0
Return Methods
Hi
Hit a stumbling block(one of many!!!!) trying to devise a return methods for three instance variables. However, i seem to be receiving an error message when i try to compile the code.
comes up with the error "cannot find symbol-method racingFrog1()2Java Code:/** * Returns the value of racingFrog instance variable. **/ public int getRacingFrog1() { return this.racingFrog1(); } /**
- 01-25-2010, 10:34 PM #27
Member
- Join Date
- Dec 2009
- Posts
- 20
- Rep Power
- 0
prepareForRace
Hi Everyone, has anyone got to the prepareForRace section?
I have but think that a few things previous is wrong, can't seem to get the selected to to do anything!! any idea's from anyone?
Cheers Oli
- 01-26-2010, 10:07 AM #28
Member
- Join Date
- Jan 2010
- Posts
- 36
- Rep Power
- 0
Hi guys
I need help with constructing selectRunners() method.
Any hints? I am working on that for past 2 days in "Help with assigment needed" thread and I spend so much time on constructing an array when I just find out that it should not be an array there. What sort of loop did you used there?
Cheers
- 01-26-2010, 12:28 PM #29
Member
- Join Date
- Jan 2010
- Location
- England
- Posts
- 15
- Rep Power
- 0
After much thought I ditched my code and re-read all the course work books, and having got no where I brought the "idiots guide to java" and have now managed to actually solve the problem and get it to work.
you need to make a while loop that checks how many runners are in the race and then a nested if statement to check to see if the frogs are actually running and then a check at the end to see if there are more than 2 runners to start the race.
and it helps to create a boolean selected instance for the racingfrog class.
- 01-26-2010, 08:34 PM #30
Member
- Join Date
- Dec 2009
- Posts
- 33
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks