0

What is ? means/do in boolean?

int temp = 52;
boolean weather = temp>50 ? "Too warm" : "Too cold";

Output:

> Too warm
Ved
  • 1

0 Answers0