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
}