Khaleesi Posted April 12, 2020 Share Posted April 12, 2020 Quote Expand On 4/12/2020 at 7:17 AM, Promo said: Sorry I am a total noob coder. We have this code to add the task in this example: @Override public void onStart() { tasks.add(new Attack(this)); How do I add another task , for example Banking? Can I put all name of task in an array list and pass that array list as argument to tasks.add( List here)(this)) ? Expand You make another class like the Attack one with your banking code in it And then you can add it like the attack one tasks.add(new Banking(this)); Quote Link to comment Share on other sites More sharing options...
Promo Posted April 14, 2020 Share Posted April 14, 2020 (edited) On 4/12/2020 at 4:13 PM, Khaleesi said: You make another class like the Attack one with your banking code in it And then you can add it like the attack one tasks.add(new Banking(this)); Expand Thanks for the reply Khaaleesi. I've got something working now. Edited April 25, 2020 by Promo Quote Link to comment Share on other sites More sharing options...