From 51303aa4e07116bb96af20670f3164e5fd94121f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 6 Feb 2024 21:51:48 -0700 Subject: [PATCH] Fixed path and a minor return bug. --- spring24/week4/Challenge.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring24/week4/Challenge.java b/spring24/week4/Challenge.java index 033fb25..1a2a288 100644 --- a/spring24/week4/Challenge.java +++ b/spring24/week4/Challenge.java @@ -28,7 +28,7 @@ public class Challenge { // TODO: Convert your variable to a String variable. - return null; // TODO: Return the variable. + return ""; // TODO: Return the variable. } /** @@ -112,7 +112,7 @@ public class Challenge { // Test driver for the three coding challenges. public static void main(String[] args) { - File f = new File("Example.txt"); // TODO: Identify the correct path for your OS and IDE/editor. + File f = new File("spring24/week4/Example.txt"); String s = readFile(f); ArrayList list = split(s); double result = calculate(list);