From 830ed72dc019dbe27ee168b5ceac119d697b8965 Mon Sep 17 00:00:00 2001 From: Shuulker Date: Fri, 19 Jan 2024 12:01:43 -0800 Subject: [PATCH 1/2] Completed Java Lab 001 --- .idea/misc.xml | 2 +- src/HelloXwing.java | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7464918..172df7b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..6170ad5 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,14 @@ +/** + * + * @author Trevor Hartman + * @author Joseph Roberts + * + * @since Version 1.0 + * + */ + + + public class HelloXwing { /** * Returns a String containing a X-Wing ASCII-Art @@ -29,5 +40,6 @@ static String xwing() { public static void main(String[] args) { // Comment + System.out.println(HelloXwing.xwing()); } } From 87eb643b8acc7e987d98c5354b67aee3d42d4932 Mon Sep 17 00:00:00 2001 From: Shuulker Date: Fri, 19 Jan 2024 13:42:33 -0800 Subject: [PATCH 2/2] Completed Java Lab 001 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5c6885c..9b93ac7 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,13 @@ * Modify the HelloXwing.java file to print out to the **console** the xwing() method. * Run your program, verify an ascii-art X-Wing prints to the console, and save your changes. * Commit your changes back to your GitHub account and follow the video on doing a Pull request to the instructor account. + +1. In computer jargon, what’s the difference between a statement and a comment? +A statement is part of a program that specifies one statement of an algorithm. +1. What does it mean to say that a program is portable? +A program is portable when it can be run on more than one kind of computer. +1. In common English, what does the word compile mean? +To collect information from various sources and arrange it in a book, report, or list. +1. What is an executable? Why is that word used as a noun? +An executable is another name for object code that is ready to run on specific hardware. It's used as a noun because it's a type of file type. +