Lets say my java program is called "Yay.java", I know if I type in "java Yay.java" it runs correctly. But I want a parameter added to it such as "java yay.java p1". How do I set this up in my java program? The program should take a string as a parameter from the command prompt. (I'm using windows).