Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » need help(it says (workspace does not contain a main type (do you have a public void run() method?)))
need help [message #937185] Mon, 08 October 2012 19:02 Go to next message
Dan Clark is currently offline Dan ClarkFriend
Messages: 1
Registered: October 2012
Junior Member
it says (workspace does not contain a main type (do you have a public void run() method?))
i am on a mac using stanford eclipse and i do have it in my code what is wrong

as you can see pleas help me
/*
* File: CheckerboardKarel.java
* ----------------------------
* When you finish writing it, the CheckerboardKarel class should draw
* a checkerboard using beepers, as described in Assignment 1. You
* should make sure that your program works for all of the sample
* worlds supplied in the starter folder.
*/

import stanford.karel.*;

/*
* Name:Dan Clark
* Section Leader: Ingen
*/

public class CheckerboardKarel extends SuperKarel {

public void run() {
fillRow();
while (leftIsClear()) {
repositionForRight();
fillRow();
if (rightIsClear()) {
reporitionForLeft();
fillRow();
else
turnAround();
}
}

}
privet void fillRow() {
while (fontIsClear()) {
butBeeper();
move();
}
}
privet void repositionForRight() {
if (beeperIsPresent()) {
turnLeft();
move();
turnLeft();
move();

} else {
turnLeft();
move();
turnLeft();
}
}

privet void repositionForLeft() {
if (beeperIsPresent()) {
turnRight();
move();
turnRight();
move();
} else {
turnRight();
move();
turnRight();
}
}


}
Re: need help [message #937252 is a reply to message #937185] Mon, 08 October 2012 20:39 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1348
Registered: July 2009
Senior Member
Karel seems to be an environment developed by Stanford University as a tool to learn Java. Unfortunately, you probably won't find many people familiar with the tool here on the Eclipse forums. You should probably try searching for a Karel specific forum on the web.
Previous Topic:Mac OS X Mountain Lion
Next Topic:eclipse crashing upon startup
Goto Forum:
  


Current Time: Fri Nov 28 16:17:27 GMT 2014

Powered by FUDForum. Page generated in 0.03394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software