From 72cc094fb5b726a955b26af3f4bf515985db096b Mon Sep 17 00:00:00 2001 From: Cassandra Portlock Date: Wed, 13 Sep 2023 14:01:04 -0700 Subject: [PATCH] Completed Java Lab 001 --- README.md | 16 ++++++++++++++++ src/HelloXwing.java | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 5c6885c..c3c276f 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,19 @@ * 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. +--- +--- +## **Exercise 1.1** + +1. *In computer jargon, what’s the difference between a statement and a comment?*[^1] +2. *What does it mean to say that a program is portable?*[^2] +3. *In common English, what does the word compile mean?*[^3] +4. *What is an executable? Why is that word used as a noun?*[^4] +--- +--- + + +[^1]:The difference between a statement and a comment is that a statement is read as executable while a comment is ignored by the program. +[^2]:A portable program is one that can run on more systes than just the one it was made for. +[^3]:Compile means to translate from one language into another for the computer to use. +[^4]:An executable is a program or code that can be run. Its used as a noun because it is describing a thing. diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..c654324 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,10 @@ +/** + * + * @author Trevor Hartman + * @author Cassandra Portlock + * + * @since Version 1.0*/ + public class HelloXwing { /** * Returns a String containing a X-Wing ASCII-Art @@ -28,6 +35,7 @@ static String xwing() { } public static void main(String[] args) { + System.out.println(HelloXwing.xwing()); // Comment } }