diff --git a/mavenproject1/pom.xml b/mavenproject1/pom.xml new file mode 100644 index 0000000..eaa6a7a --- /dev/null +++ b/mavenproject1/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.mycompany + mavenproject1 + 1.0-SNAPSHOT + jar + + UTF-8 + 1.8 + 1.8 + com.mycompany.mavenproject1.Mavenproject1 + + \ No newline at end of file diff --git a/mavenproject1/src/main/java/com/mycompany/mavenproject1/ByteOverFlow.java b/mavenproject1/src/main/java/com/mycompany/mavenproject1/ByteOverFlow.java new file mode 100644 index 0000000..3fcc13d --- /dev/null +++ b/mavenproject1/src/main/java/com/mycompany/mavenproject1/ByteOverFlow.java @@ -0,0 +1,18 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.mavenproject1; + +/** + * + * @author caleb + */ +public class ByteOverFlow { + public static void main(String[] args) + { + byte b = 127; + b++; + System.out.println(b); + } +} diff --git a/mavenproject1/src/main/java/com/mycompany/mavenproject1/LogicalExpression.java b/mavenproject1/src/main/java/com/mycompany/mavenproject1/LogicalExpression.java new file mode 100644 index 0000000..f03c56f --- /dev/null +++ b/mavenproject1/src/main/java/com/mycompany/mavenproject1/LogicalExpression.java @@ -0,0 +1,29 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.mavenproject1; + +import java.util.concurrent.TimeUnit; + +/** + * + * @author caleb + */ +public class LogicalExpression { + public static void main(String[] args) + { + int x = -10; + while (true) { + System.out.print(((x > 1) || ( x < 100) ) && (x < 0)); + System.out.println(": " + x); + try { + TimeUnit.MILLISECONDS.sleep(500); + } + catch(Exception e) { + System.out.println("lol"); + } + x++; + } + } +} diff --git a/mavenproject1/src/main/java/com/mycompany/mavenproject1/Mavenproject1.java b/mavenproject1/src/main/java/com/mycompany/mavenproject1/Mavenproject1.java new file mode 100644 index 0000000..6e3c79d --- /dev/null +++ b/mavenproject1/src/main/java/com/mycompany/mavenproject1/Mavenproject1.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.mycompany.mavenproject1; + +/** + * + * @author caleb + */ +public class Mavenproject1 { + + public static void main(String[] args) { + System.out.println(0 ^ 0); + } +} diff --git a/mavenproject1/src/main/java/com/mycompany/mavenproject1/NotDemo.java b/mavenproject1/src/main/java/com/mycompany/mavenproject1/NotDemo.java new file mode 100644 index 0000000..db819ee --- /dev/null +++ b/mavenproject1/src/main/java/com/mycompany/mavenproject1/NotDemo.java @@ -0,0 +1,16 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.mavenproject1; + +/** + * + * @author caleb + */ +public class NotDemo { + public static void main(String[] args) + { + System.out.println(!true); + } +} diff --git a/mavenproject1/src/main/java/com/mycompany/mavenproject1/PrePostIncrement.java b/mavenproject1/src/main/java/com/mycompany/mavenproject1/PrePostIncrement.java new file mode 100644 index 0000000..fca3644 --- /dev/null +++ b/mavenproject1/src/main/java/com/mycompany/mavenproject1/PrePostIncrement.java @@ -0,0 +1,19 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.mavenproject1; + +/** + * + * @author caleb + */ +public class PrePostIncrement { + public static void main(String[] args) + { + int j = 0; + int i = ++j + j * 5; + + System.out.println("i is: " + i); + } +} diff --git a/mavenproject1/target/classes/.netbeans_automatic_build b/mavenproject1/target/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/mavenproject1/target/classes/com/mycompany/mavenproject1/ByteOverFlow.class b/mavenproject1/target/classes/com/mycompany/mavenproject1/ByteOverFlow.class new file mode 100644 index 0000000..221fb7d Binary files /dev/null and b/mavenproject1/target/classes/com/mycompany/mavenproject1/ByteOverFlow.class differ diff --git a/mavenproject1/target/classes/com/mycompany/mavenproject1/LogicalExpression.class b/mavenproject1/target/classes/com/mycompany/mavenproject1/LogicalExpression.class new file mode 100644 index 0000000..3bc2e2f Binary files /dev/null and b/mavenproject1/target/classes/com/mycompany/mavenproject1/LogicalExpression.class differ diff --git a/mavenproject1/target/classes/com/mycompany/mavenproject1/Mavenproject1.class b/mavenproject1/target/classes/com/mycompany/mavenproject1/Mavenproject1.class new file mode 100644 index 0000000..241d677 Binary files /dev/null and b/mavenproject1/target/classes/com/mycompany/mavenproject1/Mavenproject1.class differ diff --git a/mavenproject1/target/classes/com/mycompany/mavenproject1/NotDemo.class b/mavenproject1/target/classes/com/mycompany/mavenproject1/NotDemo.class new file mode 100644 index 0000000..2beb0c7 Binary files /dev/null and b/mavenproject1/target/classes/com/mycompany/mavenproject1/NotDemo.class differ diff --git a/mavenproject1/target/classes/com/mycompany/mavenproject1/PrePostIncrement.class b/mavenproject1/target/classes/com/mycompany/mavenproject1/PrePostIncrement.class new file mode 100644 index 0000000..36a5746 Binary files /dev/null and b/mavenproject1/target/classes/com/mycompany/mavenproject1/PrePostIncrement.class differ diff --git a/mavenproject1/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/mavenproject1/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..a5211b1 --- /dev/null +++ b/mavenproject1/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +com/mycompany/mavenproject1/ByteOverFlow.class +com/mycompany/mavenproject1/Mavenproject1.class diff --git a/mavenproject1/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/mavenproject1/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..89a45b1 --- /dev/null +++ b/mavenproject1/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/caleb/NetBeansProjects/mavenproject1/src/main/java/com/mycompany/mavenproject1/Mavenproject1.java +/home/caleb/NetBeansProjects/mavenproject1/src/main/java/com/mycompany/mavenproject1/ByteOverFlow.java diff --git a/mavenproject1/target/test-classes/.netbeans_automatic_build b/mavenproject1/target/test-classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29