package com.example.android.miwok;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

public class NumbersActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_numbers);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        /**
         * Create a String array with 10 indices containing the words for the numbers 1-10
         */
        String words[] = new String[10];
        words[0] = "one";
        words[1] = "two";
        words[2] = "three";
        words[3] = "four";
        words[4] = "five";
        words[5] = "six";
        words[6] = "seven";
        words[7] = "eight";
        words[8] = "nine";
        words[9] = "ten";

    }

}

@@ -145,16 +145,41 @@
 Toolbar;
+%0Aimport android.util.Log;
 %0A%0Apublic
@@ -512,22 +512,9 @@
    /
-**%0A         * 
+/
 Crea
@@ -593,20 +593,8 @@
 -10%0A
-         */%0A
     
@@ -869,24 +869,24 @@
 %5D = %22nine%22;%0A
-
         word
@@ -900,16 +900,756 @@
 %22ten%22;%0A%0A
+        // Log messages to check that the array has been initialised correctly%0A        Log.v(%22NumbersActivity%22, %22Word at index 0: %22 + words%5B0%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B1%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B2%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B3%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B4%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B5%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B6%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B7%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B8%5D);%0A        Log.v(%22NumbersActivity%22, %22Word at index 1: %22 + words%5B9%5D);%0A%0A
     %7D%0A%0A%7D

Create verbose log to check that the words array is working