arraylist

  1. S

    Arraylist of int[] array

    I am trying a simple code and I can't figure out what is wrong. I am trying to add int[] array to an ArrayList. It gets added correctly. But once I have more than 1 element in the ArrayList, each of the element in the list is replaced by the latest value. I tried looking for possible errors, but...
  2. G

    Calling ACTION_CALL intent from arraylist

    I created araylist and stored list of some most important services in small town ,and some random img of phone.The idea was that when user press it it would via intent call that number.But the problem is i don't know where to store phone numbers.I have vague idea how to call that intent but it's...
  3. L

    How to implement mixture of Strings and SpannableStrings in ArrayList without loads of additional code

    Is it possible to have a mixture of both String and SpannableString in an ArrayList without adding loads of code? public class MyFragment extends android.support.v4.app.Fragment { public MyFragment() {} @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup...
  4. L

    Thiết lập với các duplicate java - import từ tập tin - java

    Mình có một dự án nhỏ. Dự án import tệp txt vào String (mã hóa tương tự như CSV - chứa dấu chấm phẩy = ";"). Trong các bước tiếp theo, String được thay đổi thành ArrayList. Sau đó, bằng cách sử dụng Predicate, mình loại bỏ các yếu tố mà mình không quan tâm. Cuối cùng, thay thế ArrayList trên...
Top