Advertisement
JeffGrigg

Untitled

Apr 2nd, 2021
2,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.26 KB | None | 0 0
  1. public class HelloWorld {
  2.     public static void main(String[] args) {
  3.         if (args.length == 0) {
  4.             System.out.println("Hello world!");
  5.         } else {
  6.             System.out.println("Hello " + String.join(" ", args) + "!");
  7.         }
  8.     }
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement