From 4533bfe868f44bfe19ca679308d25afc4b77576b Mon Sep 17 00:00:00 2001
From: tmcorbin96 <115915843+tmcorbin96@users.noreply.github.com>
Date: Sun, 30 Oct 2022 15:57:21 -0400
Subject: [PATCH 1/2] I have commited
---
pom.xml | 7 +++++++
src/main/java/Main.java | 29 ++++++++++++++++++++++++++++-
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1efac6c..a26ff00 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,6 +7,13 @@
io.zipcoder
MicroLabs-OOP-TooLargeTooSmall
1.0-SNAPSHOT
+
+
+ commons-lang
+ commons-lang
+ 2.5
+
+
\ No newline at end of file
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index 05e41a9..6ee043e 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -1,9 +1,36 @@
+import java.util.Scanner;
+
/**
* Created by iyasuwatts on 10/17/17.
*/
public class Main {
+
+
public static void main(String[] args){
-
+ Scanner Number = new Scanner(System.in);
+
+ int num1 = (int) (Math.random() * 100);
+ int guess = 3;
+ int i, tryMe;
+ System.out.println("Guess a number! Any number!");
+ for( i = 0; i < guess; i++) {
+ tryMe = Number.nextInt();
+ if (num1 == tryMe) {
+ System.out.println("You got it dude!");
+ } else if (num1 > tryMe) {
+ System.out.println("Too small!");
+ } else if (num1 < tryMe) {
+ System.out.println("Too big!");
+ }
+
+ }if (i == guess)
+ {System.out.println("Better luck next time!");
+ System.out.println("The number was " + num1);
+ }
+
+
+
}
+
}
From a1ab11813abbb99570121f0139b1e7cd9f1867af Mon Sep 17 00:00:00 2001
From: tmcorbin96 <115915843+tmcorbin96@users.noreply.github.com>
Date: Fri, 17 Mar 2023 14:47:52 -0400
Subject: [PATCH 2/2] add
---
src/main/java/Main.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index 6ee043e..5dcb98d 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -11,7 +11,7 @@ public static void main(String[] args){
Scanner Number = new Scanner(System.in);
int num1 = (int) (Math.random() * 100);
- int guess = 3;
+ int guess = 5;
int i, tryMe;
System.out.println("Guess a number! Any number!");
for( i = 0; i < guess; i++) {