From 0e83b892b28a4fca561c57f4bb2576359e775f66 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 15:38:20 +0100 Subject: [PATCH] Created Method that splits a string into Parts --- src/main/java/game/runGame.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/game/runGame.java b/src/main/java/game/runGame.java index 954dfc8..021d5f8 100644 --- a/src/main/java/game/runGame.java +++ b/src/main/java/game/runGame.java @@ -44,5 +44,9 @@ public class runGame { } return Arr; } + public static String[] SplitAnswers(String[] data2, int i) { + String[] parts = data2[i].split(","); + return parts; + } }