Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens [message #998503] Thu, 10 January 2013 05:57 Go to next message
Rick Lee is currently offline Rick LeeFriend
Messages: 1
Registered: January 2013
Junior Member
package com.testing.android.test;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

public class Menu extends ListActivity {

String classes[] = { "MainActivity", "example1", "example2", "example3", "example4", "example5", "example6" };

// there's an error here (see topic title)... what am I doing wrong?

classes[4];


@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
}

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {

super.onListItemClick(l, v, position, id);
}


}
Re: Syntax error on tokens, delete these tokens [message #998700 is a reply to message #998503] Thu, 10 January 2013 14:34 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

This is more of a Java question than an Eclipse question, but you've got a statement that doesn't declare a field, method, or inner class in a location where you're only allowed to do those things.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:CreateProcess 206 error when Run As (long classpath problem)
Next Topic:DesktopGate remote control and monitoring
Goto Forum:
  


Current Time: Thu Apr 25 15:09:22 GMT 2024

Powered by FUDForum. Page generated in 0.05047 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top