Created
October 10, 2014 04:51
-
-
Save mechinn/562ccd4327f9263ec42e to your computer and use it in GitHub Desktop.
Hello args
This file contains 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
public class Hello { | |
public static void main(String[] args) { | |
//for each word in args | |
for(String word : args) { | |
//print the word on the same line with a space after | |
System.out.print(word+" "); | |
} | |
//print a newline | |
System.out.println(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment