logo

Crowdly

Mida prinditakse konsooli? public static void main(String[] args) { Op...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Mida prinditakse konsooli?

public static void main(String[] args) {

Optional<String> gender = Optional.of("MALE");

Optional<String> emptyGender = Optional.empty();

if (gender.isPresent()) {

System.out.println("Value available.");

} else {

System.out.println("Value not available.");

}

}

0%
0%
More questions like this

Want instant access to all verified answers on moodle.taltech.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!