Hello,
I am writing a program where we use a Bubble Sort to alphabetize words and their corresponding defintions. So far, i have entering of the words and their definitions going for me, but I can't quite figure out the Bubble Sort. Here's what I have:
public class BubbleSort {
 
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner indata = new Scanner(System.in);
		ArrayList <String> entry = new ArrayList <String>();
		ArrayList <String> definition = new ArrayList <String>();
		int selection = 0;
		String store, del, choice, answer;
                                                                                                     do{
					System.out.print("Please enter a word: ");
					store = indata.next();
					entry.add(store);
					store = indata.nextLine();
					System.out.print("Please enter a brief definition of " + store + ": ");
					store = indata.nextLine();
					definition.add(store);
					System.out.println();
					System.out.println("Would you like to enter another word?(Y/N)");
					answer = indata.next();
					System.out.println();
				}while(answer.equals("y") || answer.equals("Y"));