Bob Holland

Greenhorn
+ Follow
since Dec 15, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bob Holland

argh!!! i jus dont have a clue as to what the heck im meant to be doing.

hears the deal, im meant to place another robot onto the maze thats allready there, and then guide him to the center. but i jus dont know where to start, heres what i was given:

public class MazeRunner{

/**
* Constructor for objects of class MazeRunner
*/
public MazeRunner(RobotWorld world){
//create a new robot and add to the world
Robot marvin = new Robot(1,1,1);
world.addItem(marvin);

//add code here to get robot to meet the robot at the centre of the maze
//by using loops and the methods provided by the robot class

//for example
marvin.move();
System.out.println(marvin);


}//end constructor

}//end class


AND


public class MazeLauncher {

/**
* Application entry point, use to test main method
*/
public static void main(String[] args) {
//DO NOT EDIT THIS CLASS, just use to test main method
RobotWorld world = RobotWorld.getDefaultRobotWorld();
world.resizeWorld(20, 15, 33);
world.clearWorld();
Maze m = new Maze(world);

//pause
System.out.println("Press enter to let your robot find its way to the other robot in the centre");
UserInput.readString();

MazeRunner mr = new MazeRunner(world);

//pause
System.out.println("Press enter to finish");
UserInput.readString();

System.exit(0);

}//end main
}//end class



now im not at all asking anyone to complete this for me, i just would like to understand how im meant to place the robot, and get him to move???


please help me, this is really getting to me BoB
16 years ago
hi there, how do i use a for loop, and what is the correct syntax please?? Bob
16 years ago
hi there, i need to write a program which i can enter the first desired ascii character, and the last, and the program prints the list to the screen, but i dont know how to get started, do the characters have a numerical relation, please help Bob
16 years ago
hi,, i cant find the syntax there anywhere

what i want it to do is

if the variable is less than 13 charachters long then print an error,
16 years ago
hi again, what is the syntax to chech that a string variable has the right ammount of charcters, i think its something like


if (variable lenght < 0)

thanks in advance Bob
16 years ago
wow, thanx a lot, i was stumped for ages, thanx again
16 years ago
hi there all, im trying to write a program something like this



if "percentage"(this is a variable) is between 30 and 40 then print .............

but i dont know the syntax for the between bit, i can do greater than, less than, and equal, but not between, please help me!!!
16 years ago