April 12, 20205 yr 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));
April 14, 20205 yr 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, 20205 yr by Promo
Create an account or sign in to comment