Java basic compilation error
I have a simple error in a very simple start of a program that has me
stumped. I've included comments of the errors on the appropriate lines.
What am I missing? (Yes, I am a nube.)
package mainPack;
public class Bodies{
int mass;
int radius;
int xpos;
int ypos;
float xvel;
float yvel; //Syntax error, insert "}" to complete ClassBody
public Bodies(mass, radius, xpos, ypos, xvel, yvel){
}
} //Syntax error on token "}", delete this token
No comments:
Post a Comment