Implement isPrime method in java

In this post, we will implement isPrime method. isPrime method will take an integer as input and determine whether the number is prime or number. A prime number is a number which has only two divisors …

java random number between 1 and 10

We have already seen random number generator in java.In this post, we will address specific query on how to generate random number between 1 to 10. We can simply use Random class’s nextInt() method to achieve …

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog