On Sun, Sep 4, 2011 at 1:56 PM, Zwiebel <[email protected]> wrote: > OK thanks for the very fast reply. > > So If I use > > ArrayList<int> array; > > array = new ArrayList(20); > > button.setOnClickListener(new View.OnClickOnListener) { > > @Override > public void onClick (View v) { > //something to add the button's specified number to the > array > > } > } > > And I use the add method for add a number to the ArrayList will be > good?
Yes. > And here is the question, that How I can compare them, too? http://stackoverflow.com/questions/4994021/compare-every-item-to-every-other-item-in-arraylist Bear in mind that none of this has anything to do with Android. There are plenty of Java support resources out there, such as StackOverflow's [java] tag. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

