diff --git a/bin/App.class b/bin/App.class index baa6c67..5cef78c 100644 Binary files a/bin/App.class and b/bin/App.class differ diff --git a/src/App.java b/src/App.java index b75b810..b87f854 100644 --- a/src/App.java +++ b/src/App.java @@ -1,7 +1,27 @@ -public class App { - public static void main(String[] args) throws Exception { - System.out.println("Hello, World!"); - } -} +import java.util.Random; -/* TEsts */ \ No newline at end of file +public class App { + public static void main(String[] args) { + System.out.println("A code request you have made,"); + System.out.println("Fear not, for I am here to aid."); + System.out.println("In Java, a language so grand,"); + System.out.println("I'll lend you a helping hand."); + + // Creating a Random object + Random random = new Random(); + + // Define the range for x and y + int minRange = -1000; + int maxRange = 1000; + + // Generate random values for x and y within the specified range + int x = random.nextInt(maxRange - minRange + 1) + minRange; + int y = random.nextInt(maxRange - minRange + 1) + minRange; + + int sum = x + y; + + System.out.println("The sum of " + x + " and " + y + " is: " + sum); + + System.out.println("May the code be with you!"); + } +} \ No newline at end of file