Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HelloWorld
- {
- public static void main(String[] args)
- {
- if(args.length == 0)
- main(new String[] { "3", "I love you!" });
- else
- {
- System.out.println(args[1]);
- int n = Integer.parseInt(args[0]);
- if(n > 1)
- {
- args[0] = Integer.toString(n - 1);
- main(args);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement