I need help!
public static int[] arrayname = new int[3];
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class MyWorld here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MyWorld extends World
{
/**
* Constructor for objects of class MyWorld.
*
*/
public static boolean[] alive = new boolean[3];
public MyWorld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1400, 800, 1);
}
public void act(){
}
}
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class MyWorld here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MyWorld extends World
{
/**
* Constructor for objects of class MyWorld.
*
*/
public MyWorld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1400, 800, 1);
}
public void act(){
public static boolean[] alive = new boolean[3];
}
}
import greenfoot.*;
public class MyWorld extends World
{
public static boolean[] alive;
public MyWorld()
{
super(1400, 800, 1);
}
public void act()
{
alive = new boolean[3];
}
}