Programs use selection statements to choose among alternative courses of action. For example, suppose that the passing grade on an exam is 60. The statement
if ( studentGrade >= 60 )
System.out.println( "Passed" );
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.