Khaleesi Posted April 12, 2020 Share Posted April 12, 2020 Quote 8 hours ago, 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)) ? 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 6: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)); 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...