Thursday, 12 September 2013

Can somebody help me with Java code?

Can somebody help me with Java code?

A method called dropItems() taking a Robot and an integer. The robot
should drop that number of Items. My version is unsuccessful, and I don't
understand where the problem is..
int dropItems(String input, int Robot, int count) {
count = 0;
while(isRobotCarryingItems()) {
dropItemsFromRobot();
}
count++;
if(count > 0)
return count;
}

No comments:

Post a Comment