how to write single line if statment in java code example Example: one line if statement java statement ? true : false