Hello I need help on my BLUEJ program.
Complete this application with the following specifications:
1.Input the words into a single String variable as a comma-delimited list using a showInputDialog (or you may use a Scanner object).
2.The words from the list must tokenized by the split() method of type String and assigned to a String array prior to sorting.
3.Examples of sorting algorithms are provided in Chapter 19; do not use the sort method of the Array class (or any other Java library sorting Class) to sort the array (except as noted below).
4.The alphabetizing is case insensitive, so use the appropriate String method for comparing.
5.Output the list with each word on a separate line into a showMessageDialog (or you may use the print() and/or println() methods).
This is what i have:
public class Strings
{
public static void main(String[] args)
{
Scanner reader = new Scanner(System.in);
String s1 = new String("Dog, Mouse, Cat, Pig, Monkey");
String[] t1 = s1.split(",");