Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tracerbullet: 1. Ausgabe

  • Loading branch information...
commit 68f5ba2342016ab2bc553c5f0b9cafdbf3ab3533 1 parent 27c2d68
@schauder authored
Showing with 29 additions and 0 deletions.
  1. +29 −0 src/de/schauderhaft/architecture/example/ConsoleStuff.java
View
29 src/de/schauderhaft/architecture/example/ConsoleStuff.java
@@ -0,0 +1,29 @@
+package de.schauderhaft.architecture.example;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+
+public class ConsoleStuff {
+
+ public static void main(String[] args) {
+
+ System.out.println("Spiel gestartet!");
+ System.out.print("Runde 1 Eingabe:");
+ makeInput();
+ System.out.println(" XXX Punkte! Gesamt: XXX");
+ }
+
+ private static String makeInput() {
+ BufferedReader console = new BufferedReader(new InputStreamReader(
+ System.in));
+ String zeile = null;
+ try {
+ zeile = console.readLine();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return zeile;
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.