Skip to content

Commit

Permalink
program update unibo-oop#1
Browse files Browse the repository at this point in the history
  • Loading branch information
23Emaaaa committed Nov 20, 2022
1 parent ec911c9 commit 9c022af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 83-mvc-io/src/main/java/it/unibo/mvc/SimpleController.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public final class SimpleController implements Controller {

private final List<String> History_str = new LinkedList()<>;
private final List<String> History_str = new LinkedList<>();
private String nextString;

@Override
Expand All @@ -32,9 +32,9 @@ public List<String> get_history_printed_string() {

@Override
public void print_current_string() {
String StrNullmessage = new StrNullmessage("String is null");
// String StrNullmessage = new StrNullmessage("String is null");
if (this.nextString == null) {
throw new IllegalStateException("Error: " + StrNullmessage);
throw new IllegalStateException("Error: String is null");
}
History_str.add(this.nextString);
System.out.println(this.nextString);
Expand Down

0 comments on commit 9c022af

Please sign in to comment.