Actually fix the freaking arrays

This commit is contained in:
2023-01-12 11:55:40 -06:00
parent 8733d7099c
commit d0ae2478a1
7 changed files with 218 additions and 43 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>lab3_CalebFontenot</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<exec.mainClass>com.calebfontenot.lab3_calebfontenot.Lab3_CalebFontenot</exec.mainClass>
</properties>
</project>

View File

@@ -0,0 +1,50 @@
/*
* 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.lab3_calebfontenot;
/**
*
* @author caleb
*/
public class Employee {
private String name;
public Employee(String name)
{
this.name = name;
}
/**
* Get the value of name
*
* @return the value of name
*/
public String getName()
{
return name;
}
/**
* Set the value of name
*
* @param name new value of name
*/
public void setName(String name)
{
this.name = name;
}
public static void main(String[] args)
{
Employee e = new Employee();
e.setName("John Wayne");
System.out.println(e.getName());
Employee e1 = new Employee("Mary Poppins");
System.out.println(e1.getName());
}
}

View File

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