Prime number is the number that is divided by one and itself only, Twin Prime is a pair of prime numbers that differ by 2. For example, 3 and 5 are twin primes, 5 and 7 are twin primes, and 11 and 13 are twin primes. Write a java program to find all twin primes within a range of 1 up to a number entered by user, such that, that the entered number should be greater than 10. The program has to have a method that takes an integer as a formal parameter and returns if that number is prime or not.

Display the output as follows:
Enter an integer (greater than 10): 7
Not accepted number! Enter an integer (greater than 10): 50
The number of twin prime numbers up to 50 are:
(3, 5)
(5, 7)
(11, 13)
(17, 19)
(29, 31)
(41, 43)