How do you sort an array of strings with dates entered in


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

}

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: How do you sort an array of strings with dates entered in
Reference No:- TGS0135471

Expected delivery within 24 Hours