Create NextPrime.java

To find the next prime number in the series. (Max value=1000)