Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GreetingServis {
- public static void main(String[] args) {
- if (args.length > 0) {
- System.out.println("Hello " + args[0] + ". Has just you run your compiled file.");
- }
- else
- {
- System.out.println("Attention!"
- + " Please enter as the value of the argument your name."
- + " For example: java GreetingServis John");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement