Does anybody have a list of acceptable, or better yet, unacceptable characters that when passed to Main as arguments will create a syntax error when running a simple java program. So far, ( and ) cause a syntax error, but other brackets do not. I assume parenthesis denote a method, a constructor??? and can't be used as arguments in the array?
I'm just jamming everything I can into the simple program as arguments to see what makes the program fail. Also, since I have already compiled the program, is this syntax error a runtime error?
“You may never get to touch the Master, but you can tickle his creatures.”
― Thomas Pynchon, Gravity's Rainbow
That error is from the bash shell, not your Java application. You will need to do whatever the shell requires so that it doesn't try parse and interpret your input - for example: enclose your input in single quotes, or escape specific character with a backslash: