This video was really helpful and the explanations solidified my understanding. I really like the fact that all of your videos are so short and to the point. Thank you so much! :)
Nice videos bud ! I like how you explain everything you type in there and how they work ... thats just something my teacher does not do and that forces me to learn from videos instead of class ... keep it up ... new here tho but im gonna watch ALL of your content
Thanks so much for your kind words, they really make me glad that I started to create tutorials and make my day! I am very sorry to hear your teacher doesn't explain the code so you can develop an understanding but I do hope my videos can fill in that void. I hope you enjoy my other videos!
Thanks so much for the positive feedback, it really makes my day! I do agree that my explanation is a bit long. I'd like to think I have improved over the year.
This tutorial was designed for A-Level students, so security wasn't a factor, however, I do have an encryption series which will address your concerns: ruclips.net/p/PLrqwM2iFagugVCieW5djj59uLUEcJ0rRi In August I will also be applying those tutorials to my file handling tutorials. Hope this helps!
Hey Max I need some help if you can reply of course. So basically im making a project for my university where I have an application(Basically creating netflix in java), and I created a login Jframe and a new user Jframe, to create new Users on the application (Email, Password) How could I do to store this information in a database every time I create one so that I can later login with it in the original login form? It would be a lot of help if you could answer, I love your content btw, keep doing great!
Hey Max, I want to verify data from my signup details. I also want to know that how i can get value from Text and Password Field I'm working on javafx GUI for a project.
should say what error it is .. if it is syntax then lookup on the line it sais the error is .. maybe you forgot a ( ; ) symbol or smth simple you cant really see so look closely ... not any expert on java just learning from my mistakes ;p
ShadowCy Oo im not using NetBeans. I’m using notepad++ and cmd. It wasn’t a problem in the program. It was more of when I ran it, instead of saying true or false, it was showing error instead. It was printing out what was in the catch, system.out.println(“Error”). Like that. But I got it out so thank you for at least responding to me.
@@maxodidily I am facing the same issue the output is showing only error (whatever is there is catch)instead of showing found.Can you please help me on this.
I would usually store it in the folder for the Java project. You could also create a subfolder if you want inside your Java Project folder to store text files for your program, if you do this be sure to make sure the file path of your textfile includes the subfolder.. (By Java project folder I mean the folder where your Java project is located).
Having a problem with the code no matter what i input as username and password it always shows found, not able to understand what's going wrong, please help
@@lvca021 So what I did was that I created a new boolean variable named passed and used it inside the if where the username and password is equaled, there i put in passed as true (so it only works if the username and password matches) and then put a break statement with it, and outside the while put a new if statement where if passed is true then it shows message "login successful" or else it dosent
@@maxodidily it was located on desktop, i opened the file properties and copied the filepath into my program, but it didnt work. I also tried putting it on every single folder of the project without any result, aswell as changing the / with the \\
So this can be applied to any case of reading records from files. Simply create more strings where tempUsuername and tempPassword are for each variable. Then were we have x.next() have one more for each extra string you made before. Make sure you read and assign values in the correct order otherwise u will get unexpected issues. Hope this helps.
i have registered a user saved it to the database. I want the user when pressing the login button another page to pop up and welcome the user with his username. For example. Welcome george2014
Today is my project's last date you save my 5 marks. Thanks a lot, professor.
This video was really helpful and the explanations solidified my understanding. I really like the fact that all of your videos are so short and to the point. Thank you so much! :)
Where did you save your txt file? I have the code completely identical just as a reference, but still it doesnt work.
Nice videos bud ! I like how you explain everything you type in there and how they work ... thats just something my teacher does not do and that forces me to learn from videos instead of class ... keep it up ... new here tho but im gonna watch ALL of your content
Thanks so much for your kind words, they really make me glad that I started to create tutorials and make my day! I am very sorry to hear your teacher doesn't explain the code so you can develop an understanding but I do hope my videos can fill in that void. I hope you enjoy my other videos!
Thanks dude. A bit longwinded, but you explain things REALLY well
Thanks so much for the positive feedback, it really makes my day! I do agree that my explanation is a bit long. I'd like to think I have improved over the year.
Well explained. The thing im worried about is where can i store the passwords so reverse engineers cant easily get them
This tutorial was designed for A-Level students, so security wasn't a factor, however, I do have an encryption series which will address your concerns: ruclips.net/p/PLrqwM2iFagugVCieW5djj59uLUEcJ0rRi In August I will also be applying those tutorials to my file handling tutorials. Hope this helps!
on the spot method in Java thanks
How do you make this work in jcombobox? I compare tempusername with textfields instead but it keeps going into the catch statement
how about i want to get only int numbers from the text file. How to use delimiter?
Thank you, very informative.
why does my code keep printig found even when my username and/or password does not exist in my textfile?
you fvkng saved me dude
Hey Max I need some help if you can reply of course. So basically im making a project for my university where I have an application(Basically creating netflix in java), and I created a login Jframe and a new user Jframe, to create new Users on the application (Email, Password) How could I do to store this information in a database every time I create one so that I can later login with it in the original login form? It would be a lot of help if you could answer, I love your content btw, keep doing great!
Having the same project and the same problem, any advices on the issue and how to solve it?
Hi Max, my java Netbeans keeps saying that the useDelimeter is wrong
Hey Max,
I want to verify data from my signup details.
I also want to know that how i can get value from Text and Password Field I'm working on javafx GUI for a project.
you just use ".getText()" method to get your input text or Password
Tried making my own version, didn't work... Made a complete copy of your code as a reference... Didn't work itself. Where did you save the text file?
I saved my text file in my Java project folder.
@@maxodidily ah I see, thanks!
I had the same Problem but it's now solved ;-)
Hey it's been 4 years, but can I ask how were you able to resove it if you can remember?
Does this work in csv file instead of text file???
Yes, it does.
Can someone help? I'm using notepad++ instead and it keep saying error when I run the program.
should say what error it is .. if it is syntax then lookup on the line it sais the error is .. maybe you forgot a ( ; ) symbol or smth simple you cant really see so look closely ... not any expert on java just learning from my mistakes ;p
What error message are you receiving?
ShadowCy Oo im not using NetBeans. I’m using notepad++ and cmd. It wasn’t a problem in the program. It was more of when I ran it, instead of saying true or false, it was showing error instead. It was printing out what was in the catch, system.out.println(“Error”). Like that. But I got it out so thank you for at least responding to me.
Max O'Didily not an error message. It was printing error instead of true or false. But i got it out thank you for responding to me❤️
@@maxodidily I am facing the same issue the output is showing only error (whatever is there is catch)instead of showing found.Can you please help me on this.
Can i use this for java jframe programs?
Indeed you can.
Instead of showing one message successful or error
It shows successful for any input (not in file ) and error then . What's the problem?
This sounds like a code blocks issue to me, probably due to incorrectly placed curly braces.
Thanks sir.
where should the txt file be stored
I would usually store it in the folder for the Java project. You could also create a subfolder if you want inside your Java Project folder to store text files for your program, if you do this be sure to make sure the file path of your textfile includes the subfolder.. (By Java project folder I mean the folder where your Java project is located).
Thanks
Could u please show the output
Having a problem with the code no matter what i input as username and password it always shows found, not able to understand what's going wrong, please help
Same problem! :( Do you have a solution?
@@lvca021 So what I did was that I created a new boolean variable named passed and used it inside the if where the username and password is equaled, there i put in passed as true (so it only works if the username and password matches) and then put a break statement with it, and outside the while put a new if statement where if passed is true then it shows message "login successful" or else it dosent
@@lvca021 if u dont get it i can share my code with you :)
@@daxtonwoods4758 kindly share your source code, I'm getting the same problem
@@aroobmemon4679 github.com/Frost2001/Login.git
Uploaded my code on GitHub, use the link to check the code.
Legit helpful!
please i really do need help i cant get this working, ive tried every way to put the filepath but java does not find it
Where is your text file located?
@@maxodidily it was located on desktop, i opened the file properties and copied the filepath into my program, but it didnt work. I also tried putting it on every single folder of the project without any result, aswell as changing the / with the \\
Could you send me your code please?
Awesome vid mate! (clap)
Thanks a lot!
how would i do this if their is more things in a line than just a username and a password?
So this can be applied to any case of reading records from files. Simply create more strings where tempUsuername and tempPassword are for each variable. Then were we have x.next() have one more for each extra string you made before. Make sure you read and assign values in the correct order otherwise u will get unexpected issues. Hope this helps.
Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I love this
You took A-Level Spanish ??? :O
What makes you say that?
@@maxodidily Dude, I have no idea. Haha. Good video though!
@@Vedcore Eres parcialmente correcto. En mi tiempo libre, estudio espanol.
@@maxodidily says at 6:08
i have registered a user saved it to the database. I want the user when pressing the login button another page to pop up and welcome the user with his username. For example. Welcome george2014
Ren_BL with java? Is it a web site?