The user must input an int, and then the game have to put that number of objects.
This is what i think so far, but after the prompt, nothing happens.
public void act() {
JOptionPane.showInputDialog("Digite o numero de personagens: ");
int numeroAtores = scanner.nextInt();
for (int i = 0; i <= numeroAtores; i++) {
addObject(new camelo(), Greenfoot.getRandomNumber(getWidth()), Greenfoot.getRandomNumber(getHeight()));
addObject(new sapo(), Greenfoot.getRandomNumber(getWidth()), Greenfoot.getRandomNumber(getHeight()));
}
