Skip to content

Instantly share code, notes, and snippets.

@edinak1
Last active May 7, 2016 09:14
Show Gist options
  • Save edinak1/f018916f85127111664fbe4e5c58427e to your computer and use it in GitHub Desktop.
Save edinak1/f018916f85127111664fbe4e5c58427e to your computer and use it in GitHub Desktop.
public class GreatingService {
2 public static void main(String[] args) {
3 if (args.length >0) {
4 System.out.println("Hello, " + args[0]);
5 } else {
6 System.out.println("Hello");
7 }
8 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment