-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJournals.java
More file actions
43 lines (34 loc) · 1.18 KB
/
Copy pathJournals.java
File metadata and controls
43 lines (34 loc) · 1.18 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
import java.util.*;
public class Journals extends Collections {
protected String ISSN;
protected String author;
//set defaults and set type to journal
public Journals() {
super();
this.type = "Journal";
this.ISSN = "0000000";
this.author = "Unknown Author";
}
public Journals(String collectionID, String title, String ISSN) {
this();
this.collectionID = collectionID;
this.title = title;
this.ISSN = ISSN;
}
public Journals(String collectionID, String title, String publisher, String genre, String type,
String ISSN, String author) {
super(collectionID, title, publisher, genre, type);
this.type = "Journal";
this.ISSN = ISSN;
this.author = author;
}
public String getISSN() {
return this.ISSN;
}
public String getAuthor() {
return this.author;
}
public String toString() {
return String.format("%s,%s,%s,%s,%s,%s,%s\n", this.getCollectionID(), this.getISSN(), this.getTitle(), this.getPublisher(), this.getGenre(), this.getType(), this.getAuthor());
}
}