Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class GreetingServis {
  2.  
  3. public static void main(String[] args) {
  4. if (args.length > 0) {
  5. System.out.println("Hello " + args[0] + ". Has just you run your compiled file.");
  6. }
  7. else
  8. {
  9. System.out.println("Attention!"
  10. + " Please enter as the value of the argument your name."
  11. + " For example: java GreetingServis John");
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement