Java Validation: Validating a Number
ฝัง
- เผยแพร่เมื่อ 13 ต.ค. 2024
- Java Validation: Validating a Number
Greetings, today I shall be teaching you how to validate the userinput to make sure it is a valid number (Int). We will get the user input and attempt to convert it to an Int. If it succeeds return true and if not return false. Then inform the user on the result.
I will be uploading 1 video a day during the easter holidays so subscribe to be notified when I upload!
tinyurl.com/Su...
Social media:
Instagram: / mcod1999
Twitter: / mcod1999
Thanks for this I'm adding this to my utilities, used it for a school project.
Wow fantastic, very impressive.
how to loop through the string manually and see if all the characters are from the pool 0-9 ? please i need this asap
fresh and clean (y)