How would I implement multiple timers into one class? The code below only shows one timer that I’m using but I wish to add another one. I did try earlier on but I never quite figured out how I would have a separate method for it.
Is it possible? Thanks.
import javax.swing.Timer;
public Player(){
timer = new Timer(150 , this);
timer.start();
}
@Override
public void actionPerformed(ActionEvent arg0) {
//Timer Code
}