public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.certview);
ArrayList<CertInfo> m_orders = new ArrayList<CertInfo>();
Cert uc = new Cert(CertView.this);
if (null == uc.certInfo)
return;
for (int i = 0; i < uc.certInfo.length; i++) {
System.out.println("list_A=" + uc.certInfo[i].A);
System.out.println("list_B=" + uc.certInfo[i].B);
System.out.println("list_C=" + uc.certInfo[i].C);
System.out.println("list_D=" + uc.certInfo[i].D);
m_orders.add(uc.certInfo[i].A);
m_orders.add(uc.certInfo[i].B);
m_orders.add(uc.certInfo[i].C);
m_orders.add(uc.certInfo[i].D);
}
위의 add 부분에서
The method add(CertInfo) in the type ArrayList<CertInfo> is not applicable for the arguments (String) 라는
에러가 납니다..
이 에러가 뭘 의미하는건지 알고 싶습니다...




ArrayList 안에는 String으로 된 변수는 넣을수 없으며 오로지 CertInfo타입의 객체만 저장가능합니다.