-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
46 lines (39 loc) · 1.33 KB
/
Main.java
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
/*
* Title: Java Project Journal
* Author: Alexander Lorei
* Date Started: 1/7/23
*/
import java.util.Scanner;
class Main{
private static Scanner input = new Scanner(System.in);
private static ProjectBook test = new ProjectBook();
private static int result = -1;
public static void main(String[] args) {
do{
System.out.println("What would you like to do? \n 0: View Basic Notebook info \n 1: Create notebook \n 4: exit");
System.out.println("input: ");
result = Integer.parseInt(input.nextLine());
mainOptionSelection();
System.out.println("\n\n");
journalFormatter(10);
} while(result != 4);
clearScreen();
}
private static void clearScreen() {
System.out.println("\033c");
System.out.flush();
}
private static void mainOptionSelection() {
switch(result) {
case 0:
System.out.println("notebooks: \n" + test.getTitle() + ": " + test.getDescription());
case 1:
}
}
public static void journalFormatter(int entryID) {
System.out.println(test.getTitle());
System.out.println("-----------------------------------------------------");
System.out.println(test.getDescription());
System.out.println("\n\n");
}
}