From f8fbd7eec74e2e4cdff1308608c0f6147fdb5a09 Mon Sep 17 00:00:00 2001 From: DanielSantaz Date: Thu, 20 Jun 2024 10:23:42 -0400 Subject: [PATCH 1/2] setup project --- .idea/compiler.xml | 15 +++++ .idea/homework-java-ironschool.iml | 11 ++++ .idea/misc.xml | 21 +++++++ .idea/workspace.xml | 91 ++++++++++++++++++++++++++++ com/ironhack/homework2/src/Main.java | 7 +++ 5 files changed, 145 insertions(+) create mode 100644 .idea/compiler.xml create mode 100644 .idea/homework-java-ironschool.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/workspace.xml create mode 100644 com/ironhack/homework2/src/Main.java diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..84adc83 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/homework-java-ironschool.iml b/.idea/homework-java-ironschool.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/.idea/homework-java-ironschool.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..ea2d78f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..17d1704 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1718893078485 + + + + \ No newline at end of file diff --git a/com/ironhack/homework2/src/Main.java b/com/ironhack/homework2/src/Main.java new file mode 100644 index 0000000..ef513d6 --- /dev/null +++ b/com/ironhack/homework2/src/Main.java @@ -0,0 +1,7 @@ +package com.ironhack.homework2.src; + +public class Main { + public static void main(String[] args) { + + } +} From 74eaab051c459dd0641dab6c0417d4c6f5391766 Mon Sep 17 00:00:00 2001 From: Owner Date: Wed, 26 Jun 2024 17:04:33 -0400 Subject: [PATCH 2/2] -m "added Teacher.java class" --- com/ironhack/homework2/src/Teacher.java | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 com/ironhack/homework2/src/Teacher.java diff --git a/com/ironhack/homework2/src/Teacher.java b/com/ironhack/homework2/src/Teacher.java new file mode 100644 index 0000000..0ccc402 --- /dev/null +++ b/com/ironhack/homework2/src/Teacher.java @@ -0,0 +1,39 @@ +import java.util.UUID; + +public class Teacher { + private String teacherId; + private String name; + private double salary; + + // Parameterized constructor + public Teacher(String name, double salary) { + this.teacherId = UUID.randomUUID().toString(); // Generate random UUID for teacherId + this.name = name; + this.salary = salary; + } + + // Getter for teacherId + public String getTeacherId() { + return teacherId; + } + + // Getter for name + public String getName() { + return name; + } + + // Setter for name + public void setName(String name) { + this.name = name; + } + + // Getter for salary + public double getSalary() { + return salary; + } + + // Setter for salary + public void setSalary(double salary) { + this.salary = salary; + } +} \ No newline at end of file