Ant similator using Java