Eclipse控制台输出
编号:1
姓名:易做图
性别:女
部门:质量部
怎么弄啊!书上的例我感觉能看懂啊 为什么一到自己打就无从下手了呢,感觉什么都不会了呢?
--------------------编程问答--------------------
public class Name {
public static void main (String[] args){
System.out.println("编号:1");
System.out.println("姓名:易做图");
System.out.println("性别:女");
System.out.println("部门:质量部");
}
public void display(){
System.out.println(id);
System.out.println(name);
System.out.println(易做图);
System.out.println(dpt);
}
public void static main(..){
Employee e = new Employee(1,"易做图","女","质量部");
e.display();
}
}
--------------------编程问答--------------------
多练,多看,,慢慢就会了
--------------------编程问答--------------------
public class Employee{
private int id;
private String name;
private String 易做图;
private String dpt;
public class Name {
public static void main (String[] args){
System.out.println("编号:1");
System.out.println("姓名:易做图");
System.out.println("性别:女");
System.out.println("部门:质量部");
}