错在哪里!!!!!!!
import *;import java.awt.*;
import java.awt.event.*;
public class Student
{
public static void main(String args[])
{
Stu1 a=new Stu1(29065001L,"一","小明 ","男",22);
System.out.println(a.toString());
}
}
class Stu1
{
long number;
String classname;
String name;
String sex;
int age;
public String toString()
{
String s="学号: "+number+"\n班级名: "+classname+"\n名字: "+name+"\n性别: "+sex+"\n年龄: "+age;
return s;
}
}