Add test project

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2022-09-26 15:43:46 -05:00
parent 5812c3f298
commit 33d8ebc901
15 changed files with 117 additions and 0 deletions

14
mavenproject1/pom.xml Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>mavenproject1</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<exec.mainClass>com.mycompany.mavenproject1.Mavenproject1</exec.mainClass>
</properties>
</project>

View File

@ -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);
}
}

View File

@ -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++;
}
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -0,0 +1,2 @@
com/mycompany/mavenproject1/ByteOverFlow.class
com/mycompany/mavenproject1/Mavenproject1.class

View File

@ -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