There are multiple ways you can do it, you can create a 3 item array and loop asking for a number filling the array as you go, then use the items in the array as m, d, y.

A better approach however, would probably be to ask for the date in mm/dd/yyyy format, then use a string tokenizer to store them in three new Strings names m, d, y. then convert those strings to ints named month, date, and year.

There are other ways to do this as well, a few that comes to mind is a loop from 0-2, which depending on what i is at prompts the user for the correct item and stores it in a variable, you could accomplish this with a switch, or if/else clauses.

If someone mentions something you don't understand tehn ask for clarification. You have been given 2 suggestions: StringTokenizer and SimpleDateFormat. Have you bothered to read about those classes and see what they do? Another alternative is String.split() method. Go to the API and read about that too.

declare this after you have stored the input in date
then, with each call to st.nextToken(); it will allow you to store information in some variable, each application captures everything up to the next token, which in this case is "/".

you simply split on the string the user entered with delimiter "/". Then print your results.
Note, assuming user entered correct data each time. you will have to do your own error checking.

I cannot figure out what you did there. I have to have the final line say "You were born on (DD-MM-YYYY)", but when i try to type anything in, it gives me multiple lines of coding? Like right now it says "

12
You were born on 18
You were born on 1991"

And i do know how to do most of the stuff i am doing right now, i just got done writing another code that seems to be way more complicated than this..so its not like i don't know what im doing at all, just at certain parts.

I have no problem with you asking for help but that isn't what you did. You asked someone to write the code for you. That denotes you as lazy and/or a cheater. I have no intention of enabling you in either case.

Im glad you are trying to learn, but even if people are busting your balls, be nice, when asking a question, try to include how you are approaching it and where you got lost. his code uses System.out.println(str), using System.out.print(str) will keep it all on one line, then you will have to take care of formatting

if it isn't the last item in the array System.out.print(str + "/");
if it is use System.out.print(str);