@@ -0,0 +1,2569 @@
+package com.example.android.todolists;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.widget.LinearLayout;%0Aimport android.widget.TextView;%0A%0Aimport java.util.ArrayList;%0A%0A/* Defining the class so it extends/uses features from AppCompatActivity which is a base style */%0Apublic class Cooking extends AppCompatActivity %7B%0A%0A    /* onCreate method which is for initialising your activity and the bulk of your commands need to be below this method and inbetween the brackets */%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A%0A         /* Set the content of the activity to use the activity_cooking.xml layout file */%0A        setContentView(R.layout.activity_cooking);%0A%0A        /* Defines the ArrayList to use String values */%0A        ArrayList%3CString%3E cooking = new ArrayList%3CString%3E();%0A%0A        /* Adds all the values to the Arraylist */%0A        cooking.add(%22Chopping the vegetables%22);%0A        cooking.add(%22Marinating the meat%22);%0A        cooking.add(%22Boiling the rice in a pan%22);%0A        cooking.add(%22Frying the meat and vegetables%22);%0A        cooking.add(%22Adding the sauce%22);%0A        cooking.add(%22Dishing out the dinner%22);%0A        cooking.add(%22Laying the table%22);%0A        cooking.add(%22Opening the wine%22);%0A        cooking.add(%22Pouring the wine into the glasses%22);%0A        cooking.add(%22Preparing the dessert%22);%0A        cooking.add(%22Dishing out the dessert%22);%0A        cooking.add(%22Washing the dishes%22);%0A%0A        /* For Loop that runs continuously on condition that the index integer is lower than the total quantity of the Arraylist */%0A        /* the integer index is first given a value of 0 and the value of index increases by 1 each time the For loop runs */%0A%0A        for (int index = 0; index %3C cooking.size(); index++) %7B%0A%0A            /* Assigns the id of the LinearLayout to rootView */%0A            LinearLayout rootView = (LinearLayout) findViewById(R.id.cookingview);%0A%0A            /* Sets wordView into a TextView */%0A            TextView wordView = new TextView(this);%0A%0A            /* Bases on the value of index gets the appropriate value in the Arraylist and adds this to wordView */%0A            wordView.setText(cooking.get(index));%0A%0A            /* Displays a line of text on the screen in rootView (LinearLayout) */%0A            /* This is using wordView which is a TextView object based on appropriate value from Arraylist from the index variable which increases by 1 every time this loop is run */%0A            rootView.addView(wordView);%0A        %7D%0A    %7D%0A%7D%0A

Create Cooking.java