i think you are not provide the command line arguments. Run the program with command line arguments like
> java Distance1 4 5
Type: Posts; User: basha2013
i think you are not provide the command line arguments. Run the program with command line arguments like
> java Distance1 4 5