How do you sort an array of Strings with dates entered in the form mm/dd/yyyy? I want to use bubblesort method
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
}