public static void main(String[] args){

		ArrayList<String> a = new ArrayList<String>();
		a.add("0");

		System.out.println("nth\tSequence");
		System.out.println("========================================================================");

		//The for loop reads the ith element of the arraylist
		//Then calls method 'append' which returns a string which adds it to the end of 'read'
		//Result is stored in the the arraylist

		for(int i=0; i<6; i++){

			String read = a.get(i);
			String addToArrayList = read + append(read);	
			a.add(addToArrayList);
		}

		print(a);
	}