If you enjoyed this video and want to add more requirements for your passwords, I have a whole playlist for validating passwords with Java: kzitem.info/door/PLrqwM2iFaguj-10YtqbCdFeHIlbvreP8h
@Algo_Traderr
2 жыл бұрын
Hey Max, I enjoyed your video 😂😂Thanks a lot bro...
@metalgoat69
Жыл бұрын
It worked as it should! Thank you for your help my man lml
@vladimiro6690
4 жыл бұрын
Composite validator instead spaghetti code would be a best idea for validate form attributes.
@benjicanones1454
Жыл бұрын
Hello Ima save this list of videos for myself tutorial purposes. Super thank you.
@joanahandrea
4 жыл бұрын
you're funny and helpful. thank you so much for this!
@martgjepali5266
4 жыл бұрын
how do i make the program to accept at least 2 or more digits ?? Please
@madinatenel1339
4 жыл бұрын
Hello Max, thank you for your video, very helpful. I am trying to run the code; however, it asks for the return statement for each boolean method at the end of the method. Do you know why such error occurs? I followed exactly what you did. Thank you!
@maxodidily
4 жыл бұрын
Sorry for the late response! That's odd, did you include the return false at the end of the function? If you did include it, could you send your code via hastebin or pastebin please?
@madinatenel1339
4 жыл бұрын
@@maxodidily Max, I guess I figured the problem out already and honestly don't remember how. Thank you for your hard work and your response and the help!!!
@virajpatil3705
4 жыл бұрын
humorously technical
@wefinnadie7667
Жыл бұрын
Hello! I wanted to ask on what can we change on this code so that we write the password on console instead of inside the code?
@maxodidily
Жыл бұрын
It is possible. I don't cover how to get user input in my validation tutorials to save time. Here is a tutorial on how to get user input that will easily work with any of my validation tutorials: kzitem.info/news/bejne/05-lrqWmo2epiqQ
@wefinnadie7667
Жыл бұрын
@@maxodidily Thank you very much for the reply and help, I was not expecting a response!
@francisosei6582
6 жыл бұрын
thanks for the boolean explanation
@tanyamubata98
3 жыл бұрын
thank you, this really helped me understand my work
@azimzulkifly939
2 жыл бұрын
hello if you dont mind may i have this code some I try but it get error
@presidentravi4492
5 жыл бұрын
Thnaks..... . How to implements spacial character.
@simranzaveri9057
4 жыл бұрын
Hello, your video was helpful. But if I want to ask the user to enter the password and and re-enter it again and then check for the requirements, how will i do that?
@maxodidily
4 жыл бұрын
For this, I would do a simple string.equals() method Java has before checking the file. eg: if(passwordOne.equals(passwordTwo)){ //Both password fields match to read file} else { System.out.println("Password fields do not match");}
@RR-ty8hw
3 жыл бұрын
U can use loops to re enter like for loop or do while
@alisadiyathool
2 жыл бұрын
@@maxodidily do you think you could do an video on this
How to get a user ID number to be exactly 13digits and how to make this id to be on a date format?
@maxodidily
6 жыл бұрын
A great question and questions like that made me start this KZitem channel. What you want to do is validate the user input. Validation means to check if an input is reasonable. Eg: If a user is asked to enter a day of the week in English, they couldn't enter 'duck'. So to ensure an ID is exactly 13 digits you would do a length check which I have a video demonstrating that here: kzitem.info/news/bejne/ma6KyY6copV2oKw As for making sure the ID is a valid date, I have a video on that too: kzitem.info/news/bejne/2q-ix6WbkJ2BoII We would call this validation when the user inputs an userID and if all validation methods are true then allow the input to go to the file, if at least one is false then inform the user the ID is invalid. So I hope I correctly interpreted your question and answered it.
@phindilejulia3206
6 жыл бұрын
Max O'Didily thank you very much for helping me
@leahbaker5548
5 жыл бұрын
How would I make it so the password requires at least 2 capital letters?
@pietros.5940
5 жыл бұрын
Use counter variables instead of booleans, and increase them whenever you find the element you desire (e.g. an Uppercase character). Change the last "if" condition as well to adapt to the new solution if ( Uppercase > 2 && Lowercase > 2) return true else return false
@leahbaker5548
5 жыл бұрын
@@pietros.5940 thanks so much!
@prateeksingh742
5 жыл бұрын
can you please paste the logic of atleast 2 capital letters in comment
@alexhudson-
Жыл бұрын
@@pietros.5940 Hey thanks!
@sachinkhatei7132
3 жыл бұрын
Thank you so much
@letchick
6 жыл бұрын
isDigit will set the hasLower to True;
@maxodidily
5 жыл бұрын
I don't understand what you are trying to say.
@0x6po
5 жыл бұрын
why am i error at the charAt?
@maxodidily
5 жыл бұрын
May I see your code?
@AmineTiba
11 ай бұрын
some have stopped the video at if less than 7 too small
@maxodidily
11 ай бұрын
I don't know what I was thinking many years ago with regards to the font size of some of my earlier tutorials.
@somethingspecial3398
6 жыл бұрын
video are not clear
@maxodidily
6 жыл бұрын
Thanks for the time to give the feedback. Could I ask you how the video isn't clear?
@somethingspecial3398
6 жыл бұрын
Only 2 minutes video are not clear .Remaining video are clear.But good way of teaching
@maxodidily
6 жыл бұрын
Thanks a lot for the constructive feedback! I shall try to improve my explanations I sometimes add to the start of videos in the future.
@alexkhalamsky3715
3 жыл бұрын
Nice video in general, if it wasn't this lousy "penis" joke at the end, ruined everything next time you better try some involving brains gave "like" anyways because programmatically was alright you may consider return statement like this: "return hasDigit&&hasCap&&hasLower; " in such a way you don't have to use multiple returns
@jarrydoneill7834
2 жыл бұрын
how do you make this code be able to take user input
@maxodidily
2 жыл бұрын
I'll make a tutorial in a month on different ways to get user input, thanks for the suggestion!
Пікірлер: 52