Input Validation | How to validate input in coding.

Publicado em: 12 Dezembro 2021
no canal de: Crazy Programming
65
6

In this video, an exam weightage calculator is created in Netbeans IDE, as the requirements of this program are described below:

(Turn on caption for detail)

Question (InputValidation):

Write an input validation loop that keeps prompting the user to enter age which is in the range of 18 – 50 and salary which is greater than 0.

WRITE YOUR ANSWER BELOW THIS LINE


Scanner input = new Scanner (System.in);
System.out.println (“Enter your age between 18 - 50 :”);
int age = input.nextInt();
System.out.println (“Enter your salary (should be greater than 0):”);
int salary = input.nextInt();
.
.
If you need any help in java programs then contact me through the email given below:
crazy.programming.life@gmail.com
.
Don't forget to subscribe to "Crazy Programming".
.
.
Thanks for watching.


Nesta página do site você pode assistir ao vídeo on-line Input Validation | How to validate input in coding. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Crazy Programming 12 Dezembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 65 vezes e gostou 6 espectadores. Boa visualização!