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.
In questa pagina del sito puoi guardare il video online Input Validation | How to validate input in coding. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Crazy Programming 12 dicembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 65 volte e gli è piaciuto 6 spettatori. Buona visione!