1 今天写了上机练习
4.9图书管理系统
1 package Libiary; 2 3 public class Book { 4 String name,writer,out,btime,etime,ftime; 5 int money; 6 void setname(String n){name=n;} 7 void setwritter(String w){writer=w;} 8 void setout(String o){out=o;} 9 String getname(){return name;} 10 String getout(){return out;} 11 Book(String n,String o,String w){name=n;out=o;writer=w;} 12 public static void main(String args[]){ 13 Book b1=new Book("One","GuangMing","XiaoMing"); 14 Book b2=new Book("Tow","GuangMing","XiaoMing"); 15 System.out.print(b1.getname()+' '); 16 System.out.println(b1.getout()); 17 System.out.print(b2.getname()+' '); 18 System.out.println(b2.getout()); 19 20 } 21 }
2 没遇到什么问题
3 明天继续看手册