Java Programming: Creating Efficient Conditional Statements