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.
Sur cette page du site, vous pouvez voir la vidéo en ligne Input Validation | How to validate input in coding. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Crazy Programming 12 décembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 65 fois et il a aimé 6 téléspectateurs. Bon visionnage!