This commit is contained in:
Ali Can Zeybek
2025-01-09 20:32:47 +03:00
parent 72514365eb
commit ef0043ada8
4 changed files with 106 additions and 1 deletions

View File

@@ -42,4 +42,15 @@ public class Display {
throw new UnsupportedOperationException();
}
}
public static String get_default_display() {
StringBuilder sb = new StringBuilder(); // Use StringBuilder for efficiency
sb.append("------------------------------------\n");
sb.append("Welcome to the ATM\n");
sb.append("1. Check Balance\n");
sb.append("2. Withdraw Cash\n");
sb.append("3. Deposit Cash\n");
sb.append("------------------------------------\n");
return sb.toString();
}
}