-
java validate help??
I have a text file that contain the following data
john;j1;j125;road;12345
mary;ma1,mm111,ave;45654
.
.
.
so i need to key in input 1 and 2 to match and matches that data then display the remaining data
example:
input1: j1
input2: j125
john
road
12345
so how am i suppose to do it, i'm very new to this java programming
-
Re: java validate help??
Hello zyspt,
Welcome to the Java Programming Forums.
You should look into the Scaner class for reading in the file:
http://www.javaprogrammingforums.com...ner-class.html
You can also use the Scanner class to take user input at the console:
http://www.javaprogrammingforums.com...ner-class.html
Maybe take a look into the split method and use ; as a delimiter.
See what you can come up with and post back when you are stuck.. I will do my best to help you.