Arrays, Lists, Loops

All variables need a data type
integer, boolean, TextView, ImageView

int x = 14;
int y = 60;
int result = x + y;
not make sense of two boolean

int, double, boolean, char, long, float, short, byte, String

create array
int [] shoeSizesAvailable = new int[3];

initialize elements in an array
shoeSizesAvailable[0] = 5;
shoeSizesAvailable[1] = 7;
shoeSizesAvailable[2] = 10;

Access elements in an array
shoeSizesAvailable[0] -> value of 5
shoeSizesAvailable[1] -> value of 7
shoeSizesAvailable[2] -> value of 10

int[] soccerTeam = new int[11];
soccerTeam[0] = 5;
soccerTeam[10] = 1;
soccerTeam[4] = 23;
soccerTeam[1] = 10;

number of array list

/.../
package com.example.android.miwok;

public class NumbersActivity extends AppCompactActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_numbers);

		// Create on array of words
		String[] words = new String[10];
		word[0] = "one";
		word[1] = "two";
		word[2] = "three";
		word[3] = "four";
		word[4] = "five";
		word[5] = "six";
		word[6] = "seven";
		word[7] = "eight";
		word[8] = "nine";
		word[9] = "ten";

		Log.v("NumbersActivity","Word at index 0: " + words[0]);
		Log.v("NumbersActivity","Word at index 1: " + words[1]);
	}
}