[Running Java 1.7.0_51 on MacOSX]
Hey there,
This is frustrating me, as I've just successfully finished a piece of work I was supposed to finish in Java. However I'm getting some errors, when I run the code, for example,
if I compile it and use: java MyCode "Hello World!"
I get the error: -bash: !": event not found
However, if I use single quotes like 'Hello World!', the program runs without any issues, or if the exclamation mark is not on the end if using the double quotes still.
I know this might not be directly a coding question, but I wasn't too sure, so I hope someone who may have had issues when running something similar, knows about this.
Thanks!