From 9e6fe6c51930a960990dbedf367f5355fa1c5e02 Mon Sep 17 00:00:00 2001 From: Cassandra Portlock Date: Wed, 13 Sep 2023 15:05:20 -0700 Subject: [PATCH 1/2] Completed Java Assignment 001 --- src/AlanTuring.java | 9 +++++++++ src/InAGalaxyFarFarAway.java | 11 +++++++++++ src/JurassicPark.java | 15 +++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/src/AlanTuring.java b/src/AlanTuring.java index 536a0a0..510cea6 100644 --- a/src/AlanTuring.java +++ b/src/AlanTuring.java @@ -1,3 +1,11 @@ +/** + * + * @author Trevor Hartman + * @author Cassandra Portlock + * + * @since Version 1.0 + * + */ public class AlanTuring { /** * Prints Alan Turing to the console @@ -5,5 +13,6 @@ public class AlanTuring { **/ public static void main(String[] args) { // Write your program here + System.out.println("Alan Turing"); } } \ No newline at end of file diff --git a/src/InAGalaxyFarFarAway.java b/src/InAGalaxyFarFarAway.java index ac6c6a6..17f76f3 100644 --- a/src/InAGalaxyFarFarAway.java +++ b/src/InAGalaxyFarFarAway.java @@ -1,3 +1,11 @@ +/** + * + * @author Trevor Hartman + * @author Cassandra Portlock + * + * @since Version 1.0 + * + */ public class InAGalaxyFarFarAway { /** * Prints a famous Star Wars intro to the console with 3 souts. @@ -5,5 +13,8 @@ public class InAGalaxyFarFarAway { **/ public static void main(String[] args) { // Write your program here + System.out.println("A long time ago"); + System.out.println("In a galaxy far,"); + System.out.println("far away...."); } } \ No newline at end of file diff --git a/src/JurassicPark.java b/src/JurassicPark.java index c7951fa..ffaba9a 100644 --- a/src/JurassicPark.java +++ b/src/JurassicPark.java @@ -1,9 +1,24 @@ +/** + * + * @author Trevor Hartman + * @author + * + * @since Version 1.0 + * + */ public class JurassicPark { /** * Prints famous Jurasic Park quote to console with only 1 sout statement. * @param args Command line arguments [The source file path, The target file path, ...] **/ + static String Ian() { + return """ + "Life,uh, + finds a way." + -Ian Malcolm"""; + } public static void main(String[] args) { // Write your program here + System.out.println(JurassicPark.Ian()); } } From d6de6d21decee82cccc7e4149000722b14240b46 Mon Sep 17 00:00:00 2001 From: Cassanixia <111052221+Cassanixia@users.noreply.github.com> Date: Wed, 13 Sep 2023 18:24:50 -0700 Subject: [PATCH 2/2] Update JurassicPark.java --- src/JurassicPark.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JurassicPark.java b/src/JurassicPark.java index ffaba9a..b0bf09e 100644 --- a/src/JurassicPark.java +++ b/src/JurassicPark.java @@ -1,7 +1,7 @@ /** * * @author Trevor Hartman - * @author + * @author Cassandra Portlock * * @since Version 1.0 *