Skip to content

Instantly share code, notes, and snippets.

@jeeyoungk
Created July 10, 2014 17:21
Show Gist options
  • Save jeeyoungk/b381543955ce04dad466 to your computer and use it in GitHub Desktop.
Save jeeyoungk/b381543955ce04dad466 to your computer and use it in GitHub Desktop.
/*bin/mkdir /tmp/crazy 2> /dev/null
javac -d /tmp/crazy $0 `dirname $0`/Main.java
java -cp /tmp/crazy Main "$@"
exit
*/
import java.util.Calendar;
public class Main {
public static void main(String... args) {
System.out.println(Calendar.getInstance().get(Calendar.YEAR));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment