-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary.java
More file actions
72 lines (49 loc) · 2.42 KB
/
library.java
File metadata and controls
72 lines (49 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import java.util.*;
class library{
public static void main(String args[]){
accounts a1 = new accounts(12345, "Layan Albar", "layanalbar@gmail.com", 21, 'F', "0567814714",0);
//System.out.println(a1);
//a1.checkouts = new books()
books b1 = new books(0, " ", " ", " ", " ", " ", " ", " ", " ", " ", " ");
System.out.println("Book b1 isbn: " + b1.getISBN());
b1.setISBN(1234);
System.out.println("Book b1 isbn: " + b1.getISBN());
System.out.println("Book b1 status: " + b1.getstatus());
b1.setstatus("available");
b1.setlanguage("Arabic");
b1.title = "How to blah";
//a1.checkouts = new books();
//a1.checkouts.setstatus("checked out");
//a1.num_books_checkedOut =+ 1;
System.out.println("Book b1 status: " + b1.getstatus( ));
b1.checkoutBook();
System.out.println("Book b1 status: " + b1.getstatus( ));
b1.returnBook();
//ArrayList <books> availableBooks = new ArrayList <books>();
//availableBooks.add(b1);
System.out.println("Book b1 status: " + b1.getstatus( ));
//System.out.println("number of books checked out by this student: " + a1.num_books_checkedOut);
//System.out.println("Book b1 id: " + b1.getISBN());
//a1.check(12345678);
//System.out.println("Book status: " + b1.status);
//System.out.println("number of books checked out by this student: " + a1.num_books_checkedOut);
//students s1 = new students();
//s1.setlevel("Middle");
//s1.account_id = 67890;
//faculty f1 = new faculty();
//f1.name = "Layan Albar faculty";
//f1.setshift("Morning");
//System.out.println(a1.name);
//System.out.println("faculty name: " + f1.name);
device d1 = new device(123, "camera", "available");
//System.out.println("book 2 status: " + b1.status);
//System.out.println("number of books checked out by this student: " + a1.num_books_checkedOut);
//a1.check("12345678");
//System.out.println("book 2 status: " + b1.status);
//System.out.println("number of books checked out by this student: " + a1.num_books_checkedOut);
// ArrayList <books> userBooks = new ArrayList<books>();
// public void checkout(books b){
// userbooks.add(b);
// }
}
}