Code:
java MyProgram param1 param2
Above would be the command to run your program in the command line and passing the parameters to String[] args.. which is the parameter that you have in the main method of your program.. You may have guessed on how to access these arrays already...
Code:
// here's the current values of args[]
args[0] = param1
args[1] = param2