From 925dd7bcb97f5b50290b8ab3d18f2c49c2e62792 Mon Sep 17 00:00:00 2001 From: "snorkell-ai[bot]" <146478655+snorkell-ai[bot]@users.noreply.github.com> Date: Sun, 5 Nov 2023 12:33:20 +0000 Subject: [PATCH] [Snorkell.ai]: Documentation for App.java --- .../java/com/houarizegai/calculator/App.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/com/houarizegai/calculator/App.java b/src/main/java/com/houarizegai/calculator/App.java index ed173b1..aed7cdf 100644 --- a/src/main/java/com/houarizegai/calculator/App.java +++ b/src/main/java/com/houarizegai/calculator/App.java @@ -5,6 +5,25 @@ public class App { + /** + * This method is the entry point of the program. + * It creates an instance of the CalculatorUI class and starts the calculator application. + * + * @param args the command line arguments + * @throws Exception if an error occurs during the execution of the program + * + * Example usage: + * + * ```java + * public static void main(String[] args) { + * try { + * new CalculatorUI(); + * } catch (Exception e) { + * System.out.println("An error occurred: " + e.getMessage()); + * } + * } + * ``` + */ public static void main(String[] args) { new CalculatorUI();