Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
* 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.

# English vs. Computer Science
1. A ***statement*** is an executable line of code that performs an action when the program is run. A ***comment*** is a line of text that explains the code but is not executed.
2. A program is ***portable*** if it can be run on different kinds of computers with little to no modification.
3. To ***compile*** code is to translate it into machine-language and generate a file containing that machine-langauge code.
4. An ***executable*** is the file containing the compiled code.
11 changes: 11 additions & 0 deletions src/HelloXwing.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
/**
*
* @author Trevor Hartman
* @author Molly Severdia
*
* @since version 1.0
*
*/

public class HelloXwing {
/**
* Returns a String containing a X-Wing ASCII-Art
*
* @return Ascii-Art String of an X-Wing
*/

static String xwing() {
return """
__
Expand All @@ -28,6 +38,7 @@ static String xwing() {
}

public static void main(String[] args) {
System.out.println(HelloXwing.xwing());
// Comment
}
}