Escreva o programa AJVA para Vheck se o Anumber for menor que 20 e maior que 5. Ele gera a exceção fora do intervalo. Se o número estiver dentro do intervalo, ele exibe o quadrado desse número.

write a java program to check if number is less than 20 and greater than 5. It generates the exception out of range otherwise. If the number is within the range , then it displays the square of that number.
Sayan Mukherjee