Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

The month will be one of he words January, February,….. The letters in the month may be lowercase, uppercase, or any mixture of the two. the day is a one-or two-digit number. the year is any number of digits.

h9. I need to wrte a java program ConvertDate that converts a date entered by the user into

another form. The user input will have the form

month, day, year.

The month will be one of he words January, February,….. The letters in the month may be lowercase, uppercase, or any mixture of the two. the day is a one-or two-digit number. the year is any number of digits. there may be any number of spaces(1) before the month,(2) between the month and the day, (3) between the day and the year, and (4) after the year. you may assume that there is at least one space between the month and day and between the day and year. you may assume that there is a comma after the day. the converted date must have the form.

day month year

with one space between the day and month and between the month and year. the first letter of the month must be uppercase, and the remaining letters must be lowercase. the following example shows what the user will see on the screen:

Enter date to be converted:   apRiL   28,   2003

Converted date: 28 April 2003

Hint: Use the indexOf and lastIndexOf methods to locate the month, day, and year within the string entered by the uset, and then use the substring method to extract them.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"