Commit 7b85c4bd authored by Roope Malinen's avatar Roope Malinen
Browse files

korjaus edelliseen

parent 525fd1f6
......@@ -54,8 +54,8 @@ public class Tekstikayttoliittyma {
System.out.println("Kirjoita \"pistelista\" nhdksesi pistelistan");
System.out.print("> ");
String input = this.lukija.nextLine();
String nimiavain = input.substring(0,5);
try {
String nimiavain = input.substring(0,5);
if (nimiavain.equals("nimi ")) {
PlayerName = input.substring(5, input.length());
System.out.println();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment