go to run->run configurations->select arguments tab->enter your arguments using space or enter in between. use args[i] in the program to access it.