Skip to content

Instantly share code, notes, and snippets.

@Noble-Mushtak
Last active October 30, 2016 14:34
Show Gist options
  • Save Noble-Mushtak/b72f0d816edcd478b43c66cabb1b594e to your computer and use it in GitHub Desktop.
Save Noble-Mushtak/b72f0d816edcd478b43c66cabb1b594e to your computer and use it in GitHub Desktop.
APCS Template.java
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