i want to print date like 1st dec 1983,2nd,3rd 4th
can any body tell me
thanks

an String [] with the months in it, the year should be alright if your reading it from the user. Then a switch or if/else statementst to capture the day numbers like 1st, 2nd and then concatenate all of it.

What the hell is wrong with the Date, Calendar, and SimpleDateFormat classes (that do all this bs for you), and reading the API doc for those.

Well to be honest, sometimes lecturers want you to figure these things out for yourself! And then they tell you about the other classes, but regardless of whether or not you know of other classes that will do this for you, you still have to do it yourself!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.