-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprakt4.java
More file actions
52 lines (43 loc) · 2.32 KB
/
Copy pathprakt4.java
File metadata and controls
52 lines (43 loc) · 2.32 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
package Java4;
import java.util.ArrayList;
public class prakt4 {
public static void main(String[] args) {
ArrayList<Java4.Literature> fileOfLiterature = new ArrayList<>();
Java4.EntireProj allBooks = new Java4.EntireProj(fileOfLiterature);
int bookCode = 1;
String bookType = "Computer Literature";
String bookName = "Learn Java the Easy Way";
int bookYear = 2017;
String bookNamePublic = "BOMBORA";
int bookNumberPages = 400;
String bookWriter = "Bryson Payne";
String bookFieldScience = "Scientific";
int bookNumberInstances = 5647;
Java4.SciTechLiterature bookJava = new Java4.SciTechLiterature(bookCode, bookType, bookName, bookYear, bookNamePublic, bookNumberPages, bookWriter, bookFieldScience, bookNumberInstances);
allBooks.addLiterature(bookJava);
int bookJSCode = 2;
String bookJSType = "Computer Literature";
String bookJSName = "Javascript & jQuery. Interactive web development.";
int bookJSYear = 2020;
String bookJSNamePublic = "Exmo";
int book1NumberPages = 640;
String bookJSWriter = "John Duckett";
String bookJSTypePeriodicals = "Yearly";
String bookJSPeriodPublishing = "From 2020 to present";
Java4.Periodicals bookJS = new Java4.Periodicals(bookJSCode, bookJSType, bookJSName, bookJSYear, bookJSNamePublic, book1NumberPages, bookJSWriter, bookJSTypePeriodicals, bookJSPeriodPublishing);
allBooks.addLiterature(bookJS);
int bookPythonCode = 3;
String bookPythonType = "Computer Literature";
String bookPythonName = "A Byte of Python";
int bookPythonYear = 2013;
String bookPythonNamePublic = "Ebshelf Inc";
int bookPythonNumberPages = 189;
String bookPythonWriter = "Swaroop C. H.";
String bookPythonDirection = "Scientific";
int bookPythonVolume = 2;
int bookPythonPart = 1;
Java4.References bookPython = new Java4.References(bookPythonCode, bookPythonType, bookPythonName, bookPythonYear, bookPythonNamePublic, bookPythonNumberPages, bookPythonWriter, bookPythonDirection, bookPythonVolume, bookPythonPart);
allBooks.addLiterature(bookPython);
System.out.println(allBooks.ToLiterature());
}
}