<<< if-else | Index | Comparing Strings >>> |
if ( age > 17 ) { System.out.println("Eligible to vote."); System.out.println("No longer a minor."); } else { System.out.println("Not eligible to vote."); System.out.println("Still a minor."); }
<<< if-else | Index | Comparing Strings >>> |