From 39e3cb5ada4cd6961f7be3478e503cc99a70329f Mon Sep 17 00:00:00 2001 From: Joseph Verdin Date: Fri, 15 Sep 2023 20:05:06 -0700 Subject: [PATCH] Completed Java Lab 001 --- .idea/misc.xml | 2 +- README.md | 7 +++++++ src/HelloXwing.java | 11 ++++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7464918..cf9abe6 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..24cccef 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,10 @@ * 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. + +# Questions +1) The difference between a statement and comment is a statement is used to specify one part of an algorithm and a comment has no effect on a program it just provides information +2) What it means to say a program is portable means that it has the ability to run on one or more kind of computer. +3) The word compile in common english means to produce (something, especially a list, report, or book) by assembling information collected from other sources. +4) An executable is another name for object code that is ready to run on specific + hardware. This word is used as a noun because it refers to object code? im not really sure. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..5fa7c1b 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,4 +1,13 @@ +/** + * (author Joseph Verdin + * + * (since version 1.0 + * + */ + public class HelloXwing { + private static System system; + /** * Returns a String containing a X-Wing ASCII-Art * @@ -28,6 +37,6 @@ static String xwing() { } public static void main(String[] args) { - // Comment + System.out.println(HelloXwing.xwing()); } }