ADD java logical question answers