Java Validation: Length Check Tutorial (Part 3)

preview_player
Показать описание
Java Validation: Length Check Tutorial (Part 3)

Greetings, today I shall be teaching you how to preform a length check in Java to help you get that A in your practical exam. We will be using 2 variables, one to store the user input we are length checking, and the minimum length or the maximum length. If the input length is greater than or less than (depending on the length check you are conducting) then return true and inform the user their input was valid, otherwise return false and inform the user their input was invalid.

I will be uploading 1 video a day during the easter holidays so subscribe to be notified when I upload!

Social media:

Code used in this video:
Рекомендации по теме
Комментарии
Автор

ill copy and paste it into the four videos I've watched, that this guy made.
Amazing straight to the point, no extra talk about him, family or a pet. thank you, sir, you're a professional.

peterescalante
Автор

How can I limit the input of the user? Like stopping the user's input when it's on max length

palinopsis