주소록 -> 리스트뷰로 불러오는 연습중인데요.

 

한 홈페이지(http://xwing.tistory.com/110)에 그런 내용이 있습니다.

 

그런데 지금 이클립스에 위 링크 내용과 똑같이 써놔도 에러가 나서요.

 

에러 나는 부분이

persons.add(contactCursor.getString(1) + "/" + contactCursor.getString(0));         

부분의 add와,

 

46번라인의 }입니다.

 

//////////////////////////

앗!! 에러메세지 추가합니다.

add부분의 에러메세지는 :

The method add(DocFlavor.STRING) in the type ArrayList<DocFlavor.STRING> is not applicable for the arguments (String)

 

46번라인 }의 에러메세지는 :

Syntax error, insert"}"to complete ClassBody

 

//////////////////////////////////////////////

 

 

제가 이클립스 상에서 뭔가 설정을 안해둔 부분이 있는걸까요?

 

원인을 모르겠네요... ㅠㅠ