From 37a0dad9c81a6a8d61e612dfec8e61741107fc7c Mon Sep 17 00:00:00 2001 From: csprtheghst Date: Sat, 20 Jan 2024 14:23:12 -0800 Subject: [PATCH] Completed Java Lab 001 --- .idea/misc.xml | 2 +- README.md | 9 +++++++++ src/HelloXwing.java | 11 ++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7464918..69ace3f 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..8f6aaf9 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,12 @@ * 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? + * In computer jargon, a statement is a line of code that does an action or operation. A comment on the other hand is text within the source code that isnt executed by the computer. +2. What does it mean to say that a program is portable? + * A program that is portable means it can run on different computers/platforms. +1. In common English, what does the word compile mean? + * "compile" means to assemble a program written in a programming language, like java, into a code that can be used. +1. What is an executable? Why is that word used as a noun? + * An executable is a file that can be ran directly from the computer's OS. Its used as a noun to denote a program that can be ran. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..c71e419 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,12 @@ +//** +* +* @author Trevor Hartman +* @author Tanner Wilson +* +* @since Version 1.0 +* +*/ + public class HelloXwing { /** * 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()); } }