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..4f66aa1 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,14 @@ * 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 Questions + +1. In computer jargon, what's the difference between a statement and a comment? +* The difference is a statement is a line of code that is used by the computer to perform a task, while a comment is just words that are there to help explain the code and it does not interfere with the program at all. +2. What does it mean to say that a program is portable? +* Being portable means that the program is able to run on different devices or computers without many changes needed. +3. In common English, what does the word compile mean? +* Compile means translate or condense something previously unreadable for the computer to something readable and ready to be used. +4. What is an executable? Why is that word used as a noun? +* It is object code that is ready to be run. It's used as a noun because it's referring to a specific object. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..67f6b5f 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,12 @@ +/** + * + * @author Trevor Hartman + * @author Jenny Li + * + * @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 } }