Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [input]
- <command line to run program> one two three
- [output]
- Number of command line arguments = 3
- args[0] = one
- args[0].charAt(0) = o
- args[0].charAt(1) = n
- args[0].charAt(2) = e
- args[1] = two
- args[1].charAt(0) = t
- args[1].charAt(1) = w
- args[1].charAt(2) = o
- args[2] = three
- args[2].charAt(0) = t
- args[2].charAt(1) = h
- args[2].charAt(2) = r
- args[2].charAt(3) = e
- args[2].charAt(4) = e
Add Comment
Please, Sign In to add comment