CS 101 - 10/13/11 More on If Statements Use of an if statement for an error check // check for the error if ( ) { // display an error message SimpleOutput.showError ("ErrorMessage"); // quit the program System.exit(1); } -------------------------- How do we combine 2 pictures?????? Each pixel has 3 color values For the final picture: the red value for each pixel comes from data from picture 1 the green and blue valuess for each pixel comes from data from picture 2 ---------------------------- More on If statements If - elseIf form if ( ) { ; } else if ( ) { ; } else if ( ) { ; } else { ; }