Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package day1;
  2.  
  3. /**
  4. * Created by p.rulov on 11.02.2016.
  5. */
  6. public class GreetingService {
  7.  
  8. public static void main(String[] args) {
  9. if (args.length != 0) {
  10. System.out.print("Hello ");
  11. for (int i = 0; i < args.length; i++) {
  12. System.out.print(args[i] + " ");
  13. }
  14. System.out.print("!");
  15. } else {
  16. System.out.println("ERROR: The arguments are not inserted!");
  17. System.out.println("Please, insert the arguments.");
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement