Last active
October 30, 2016 14:34
-
-
Save Noble-Mushtak/b72f0d816edcd478b43c66cabb1b594e to your computer and use it in GitHub Desktop.
APCS Template.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
/** | |
* Description | |
* | |
* @author Noble Mushtak | |
* @version 1.0 (DATE) | |
*/ | |
public class Template { | |
/** | |
* Description | |
* | |
* @since 1.0 (DATE) | |
*/ | |
public static void main(String[] args) { | |
EasyInput stdin = new EasyInput(new Scanner(System.in)); | |
try { | |
//Greet the user: | |
System.out.println("Welcome! This program does Description"); | |
//Send farewells to user: | |
System.out.println("We hope you appreciated our service!"); | |
} | |
//If the user presses Ctrl+D: | |
catch (NoSuchElementException e) { | |
System.out.println("Oops! It looks like you either pressed Ctrl+D or your input ended before it was supposed to!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment