How to sort an array full of birthdates


How to sort an array full of birthdates?

so far i have the following

import java.util.Scanner;

public class dattest
{
public static void main(String [] args)
{

Scanner input= new Scanner(System.in);
String[]date=new String[4];


for(int i=0;i<4;i++)

{ System.out.println("Enter the Date #"+(i+1)+" : ");
date[i]=input.next();
}

for(int i=0;i<4;i++)
{ System.out.println(date[i]+"n");}


}

//sorting date

}

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: How to sort an array full of birthdates
Reference No:- TGS0135465

Expected delivery within 24 Hours