Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1294ba0

Browse files
committed
refactoring gui, cli, ui
1 parent 4e9c1a6 commit 1294ba0

File tree

17 files changed

+163
-31
lines changed

17 files changed

+163
-31
lines changed

‎.idea/uiDesigner.xml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
333 Bytes
Binary file not shown.

‎src/GUI/Gui.java renamed to ‎src/CLI/CLI.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
package GUI;
1+
package CLI;
22

3+
import UI.UI;
34
import java.util.Scanner;
45

5-
public class Gui {
6+
7+
public class CLI extends UI {
68
private final Scanner scanner = new Scanner(System.in);
79
private String key;
810

9-
public Gui (String name) {
11+
public CLI(String name) {
12+
super();
1013
this.key = name;
1114
System.out.println(this.key + " GUI Initiated");
1215
}
1316

17+
@Override
1418
public String read (String msg) {
1519
if (!msg.isEmpty()) {
1620
System.out.println(msg);
1721
}
1822
return scanner.nextLine();
1923
}
2024

25+
@Override
2126
public void write (String msg) {
2227
System.out.println(msg);
2328
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /