diff --git a/src/tse/lr5/Utils.java b/src/tse/lr5/Utils.java index 4f8a0f2..cc98b8d 100644 --- a/src/tse/lr5/Utils.java +++ b/src/tse/lr5/Utils.java @@ -1,5 +1,6 @@ package tse.lr5; +import java.awt.Point; import java.io.File; import java.io.FilenameFilter; @@ -18,4 +19,10 @@ public class Utils { } }); } + + public static Point readPoint(String s1, String s2) { + int x = Integer.parseInt(s1); + int y = Integer.parseInt(s2); + return new Point(x, y); + } } \ No newline at end of file