Right now I'm trying to create an android onListItemClick method. But every time I do it get tons of syntax errors saying expected semicolon. Normally when I get syntax errors like that I know to just add a semi-colon but in this situation I have no clue how semi-colons are supposed to be applied to a thing like that. Is there even supposed to be semi colons in such a statement in the first place? Here is the code
package net.androidbootcamp.coffeefinder;
import java.util.Calendar;
import android.os.Bundle;
import android.app.Activity;
import android.app.ListActivity;
import android.view.Menu;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class MainActivity extends ListActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Menu Select Array
String[] CoffeeShop = {"Creation","Starbucks","Caribou","Mo'Joe" };
//Set list adapter for list
setListAdapter(new ArrayAdapter<String>(this,R.layout.activity_main,R.id.Coffee,CoffeeShop));
//Create actions of list
protected void onListItemClick(ListView l, View v, int position, long id)
{
}