Get Your If's Straight, Man!
Computer Science Level 3Let's take this method in Java:
1 2 3 4 5 6 7 

Considering that the object ticket
belongs to the same class as this method and it has a method getValue(Boolean discount)
, what is the minimum number of keywords that we need to use in the function body to express the exact same function?
 Clarification:
return
,if
,else
are considered keywords.
Your answer seems reasonable.
Find out if you're right!
Sign up to access problem solutions.
That seems reasonable.
Find out if you're right!
Already have an account? Log in here.