Comment by 1970-01-01
6 hours ago
boolean bought = true;
boolean owns = false;
if (bought && owns) {
System.out.println("Purchase resulted in ownership.");
} else if (bought) {
System.out.println("Purchase did not result in ownership. You have rented.");
No comments yet
Contribute on Hacker News ↗