+ 6
How to get dob as an input from user along with a name in an array? In java
After getting the dob and name I just want to retrieve the stored names in the array by specifying the range of dob of those names For example : if I specify from date as 23/10/1992 and to date as 27/3/1995 I just want to display all the names within that range I want to do this in java by using core Java concept using arrays without databases r jdbc can anyone help me?
8 Réponses
+ 9
I assume you're using Array of object, that contains attribute name, and dob.
As the input, create an input like ussual. Now create a parser to format the date
SimpleDateFormat parser= new SimpleDateFormat("dd/MM/yyyy");
Date date1= parser.parse(input);
Now you cam compare the date in array and the date in input using the Date object
+ 3
Guys keep the Q&A programming related :)
https://www.sololearn.com/discuss/1316935/?ref=app
0
Tq buddy
0
Hi
0
Hello
- 1
Hii
- 1
Hello from Horn of Africa, @Somaliland
- 3
Hi