Java Validation: Lookup table
Max O'Didily
Java Validation: Lookup table
Hello guys, it's Max ODidily here and today I shall ne teahcing you how to validate user input via a lookup table to help you get that A in your practical exam. We get ther user input and create a 1D array to store all valid values for the user input. We will loop through a for loop and compare the user input with the respected element. If it is valid set valid to true. After we finish the loop we return true or false depending on the value of valid.
Easter holidays are over but I will try to upload as often as possible. Why not subscribe to keep notified when I upload? https://tinyurl.com/SubMaxODidily
Social media: Instagram: https://www.instagram.com/mcod1999/ Twitter: https://twitter.com/mcod1999 ... https://www.youtube.com/watch?v=gc6vTV9JCC4
22139962 Bytes