Finish MP2

This commit is contained in:
2023-02-07 15:16:31 -06:00
parent e7d738f2e2
commit 697b231cc7
5 changed files with 443 additions and 67 deletions

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.calebfontenot</groupId>
<artifactId>Test</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.calebfontenot.test.Test</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.calebfontenot.test;
/**
*
* @author caleb
*/
class Main {
public static void main(String[] args) {
char[] charArray = {'a', 'b', 'y', ' '};
while (true) {
System.out.print(charArray[1] + "" + charArray[0] + ""+ charArray[1] + ""+ charArray[2] + "" +charArray[3]);
}
}
}

View File

@@ -0,0 +1,16 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
*/
package com.calebfontenot.test;
/**
*
* @author caleb
*/
public class Test {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}