From a3bd20761043f0ebecf2cc4ec07eeeab8659c9e2 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Sun, 1 May 2022 11:17:18 +0200 Subject: [PATCH] refactored toString Method of class TournamentFile --- .../main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java index 2fbcf20..98b6d8b 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java @@ -136,8 +136,7 @@ public class FileIO { } public String toString(){ - String name = getName(); - return name.split("\\.")[0]; + return getName().split("\\.")[0]; } }