to write if else in one line in java code example Example: one line if statement java statement ? true : false