public class MainActivity extends AppCompatActivity {
private String TAG = MainActivity.class.getSimpleName();
private ListView lv;
ArrayList<HashMap<String, String>> contactList;
@Override
protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
contactList = new ArrayList<>();
lv = (ListView) findViewById(R.id.list);
new GetContacts().execute();
}
什麼句話的意思聲明的含義是什麼contactList = new ArrayList <>();
contactList = new ArrayList<>();
有人請解釋
歡迎來到SO。這不是教程網站或編程學校。 –