From 8c97354f5123918db23d0b247a4a21fcd5efbe12 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 14 Jan 2024 18:50:42 +0800 Subject: [PATCH] file moved --- src/practice1.java | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/practice1.java diff --git a/src/practice1.java b/src/practice1.java deleted file mode 100644 index ba77f9b..0000000 --- a/src/practice1.java +++ /dev/null @@ -1,38 +0,0 @@ -import java.util.ArrayList; -import java.util.Scanner; //scanner - -class HelloWorld { - static void calculate(ArrayList ENTRIES_LIST, String OPERATION) { - // Calculate length. - int ENTRIES_LIST_LENGTH = LIST_ENTRIES.length; - - if (ENTRIES_LIST_LENGTH > 0) { - // Create a placeholder for return result. - float OPERATION_RESULT = ENTRIES_LIST.get(0); - - if (ENTRIES_LIST_LENGTH > 1) { - for (int ENTRY_CURRENT = 1; ENTRY_CURRENT < ENTRIES_LIST_LENGTH; ENTRY_CURRENT++) { - if (OPERATION == "+") { - OPERATION_RESULT += ENTRIES_LIST.get(ENTRY_CURRENT); - } else if (OPERATION == "-") { - OPERATION_RESULT -= ENTRIES_LIST.get(ENTRY_CURRENT); - }; - }; - }; - }; - }; - - - public static void main(String[] args) { - Scanner input = new Scanner(System.in); - - // Initialize the input numbers. - ArrayList NUMBERS_INPUT = new ArrayList(); - // Ask the number. - - - System.out.println(); - - System.out.println("Hello, World!"); - } -} \ No newline at end of file