Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyObjectChild extends MyObject {
- int id;
- string name;
- static List <MyObject> staticList = new ArrayList<>();
- static String jsonStaticList = null;
- @Override
- public void addToList () {
- List<MyObject> list = new ArrayList<>();
- try {
- list.add(this);
- } catch (Exception e){
- Log.e("error", "Didn’t add MyObject to the methodList "); }
- try {
- staticList.add(this);
- } catch (Exception e){
- Log.e("error", "Didn’t add MyObject to the staticList"); }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement