
Error de novato en Eclipse
Publicado por Deivy (1 intervención) el 25/10/2013 00:29:01
Hola, soy nuevo en Eclipse y tengo un problema que no puedo resolver.
Y me sale este mensaje de error:
LinKedList cannot be resolved to a type
Me podrian ayudar, gracias.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.LinkedList;
...
public class MainActivity extends Activity {
static final String DATA_TITLE = "T";
static final String DATA_LINK = "L";
static LinkedList<HashMap<String, String>> data;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
...
@Override
private void setData(LinKedList<HashMap<String, String>> data){
SimpleAdapter sAdapter = new SimpleAdapter(getApplicationContext(), data,
android.R.layout.two_line_list_item,
new String[] { DATA_TITLE,DATA_LINK },
new int[] { android.R.id.text1, android.R.id.text2 });
ListView lv = (ListView) findViewById(R.id.lstData);
lv.setAdapter(sAdapter);
}
}
Y me sale este mensaje de error:
LinKedList cannot be resolved to a type
Me podrian ayudar, gracias.
Valora esta pregunta


0