-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpeningScreen.java
More file actions
85 lines (59 loc) · 2.02 KB
/
OpeningScreen.java
File metadata and controls
85 lines (59 loc) · 2.02 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
73
74
75
76
77
78
79
80
81
82
83
84
85
//OpenigScreen.java
//Kpolu:Jennifer:A00387022:csc122825
//Submission 05
//Constructors for opeing class.
import java.util.Scanner;
/**
*
*
*/
public class OpeningScreen {
public String firstLine;
public String secondLine;
public String thirdLine;
public int numOfSpacesToIndent;
public int numberOfBlankLinesBefore;
public int numberOfBlankLinesAfter;
public OpeningScreen(String firstLine, String secondLine,String thirdLine,
int numOfSpacesToIndent, int numberOfBlankLinesBefore,
int numberOfBlankLinesAfter)
{
this.firstLine = firstLine;
this.secondLine = secondLine;
this.thirdLine = thirdLine;
this.numOfSpacesToIndent = numOfSpacesToIndent;
this.numberOfBlankLinesAfter = numberOfBlankLinesAfter;
this.numberOfBlankLinesBefore = numberOfBlankLinesBefore;
}
public OpeningScreen(String firstLine, String secondLine,String thirdLine,
int numOfSpacesToIndent)
{
this(firstLine, secondLine, thirdLine, 16, 11,11);
}
public OpeningScreen()
{
this("Kpolu:Jennifer:A00387022:csc122825",
"Submission 5",
"Constructors for the Opening Screen Class ",16,11,11);
}
private static void pause()
{
System.out.println("Press Enter to Continue ... ");
Scanner kbd = new Scanner (System.in);
kbd.nextLine();
}
public void display()
{
String defIndent ="\t\t\t\t";
String blankLines = "\n\n\n\n\n\n\n\n\n\n\n";
/*
Loop goes here.
*/
System.out.println(this.firstLine);
System.out.println(this.secondLine);
System.out.println(this.thirdLine);
OpeningScreen.pause();
}
public static void main(String[] args) {
}
}