Please repost that to fix the formatting. You should also fix the indentation; you can use the "auto-layout" command in the Edit menu to do that.
public int getValue() { return value; } { if (Value.getValue() >= 100) { Greenfoot.setWorld(new Level1()); } }