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.
На этой странице сайта вы можете посмотреть видео онлайн Input Validation | How to validate input in coding. длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Crazy Programming 12 Декабрь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 65 раз и оно понравилось 6 зрителям. Приятного просмотра!