Java Conditional Statement - If Else and ? Operator