我在一个非常简单的程序启动中遇到了一个简单的错误,这让我很困惑。我已经在适当的行中包含了对错误的评论。我错过了什么?(是的,我是一个小精灵。)
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