From 741373df93110f3c76993595ad6a093f64fc205e Mon Sep 17 00:00:00 2001 From: John Dennis Date: Sat, 20 Jan 2024 15:19:16 -0800 Subject: [PATCH] Completed Java Lab 001 --- .idea/misc.xml | 2 +- README.md | 8 ++++++++ src/HelloXwing.java | 10 ++++++++++ 3 files changed, 19 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/README.md b/README.md index 5c6885c..cca1ef8 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,11 @@ * 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. +*In computer jargon, what’s the difference between a statement and a comment? +A statement is a part of a program that specifies a step in the algorithm while a comment contains information about the program, but does not have any effect on the program when it runs. +*What does it mean to say that a program is portable? +Something is portable if it can be moved from one type of device to another. +* In common English, what does the word compile mean? +To assemble something, or to bring something together. +* What is an executable? Why is that word used as a noun? +An executable is a product of the source code. It is a translated code that can be executed repeatedly without the source code. It is used as a noun because it is a specific file, and therefor is a noun in English. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..3a2f10c 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,12 @@ +/** + * @author Trevor Hartman + * @author John Dennis + * + * @since Version 1.0 + * + */ + + public class HelloXwing { /** * Returns a String containing a X-Wing ASCII-Art @@ -28,6 +37,7 @@ static String xwing() { } public static void main(String[] args) { + System.out.println(HelloXwing.xwing()); // Comment } }