[求助]java 编译老说"需要标识符",我老找不出原因.谢谢大家,刚学,笨极了
文件名:Project.javaclass Human
{
char name,nativeplace;
int height,weight;
void language()
{
System.out.println("human speak");
}
}
class Technician extends Human
{
char department,technique;
void express()
{
System.out.println("This person is at leaste a master!");
}
}
class Artlist extends Technician
{
char artdegreen,arttask;
void task(artdegreen,arttask)
{
System.out.println("what art_degreen,what art_task!");
}
}
class Programmer extends Technician
{
char prodegreen,protask;
void task(prodegreen,protask)
{
System.out.println("what pro_degreen,what pro_task!");
}
}
class Network extends Technician
{
char netdegreen,nettask;
void task(netdegreen,nettask)
{
System.out.println("what net_degreen,what net_task!");
}
}
class Project
{
public static void main(sting[] args)
{
Human hu=new Human();
hu.language();
Technician te=new Technician();
te.express();
Artlist ar=new Artlist();
ar.artdegreen="yj";
ar.arttask="painting";
ar.task("yj","painting");
}
}