Introduction:- Today we will be having a look on the java if-else statement and we shall see a sample program a new thing about this post that there will be a download link to the source- code of the program so you can have full access to the code .To implement your programing skills on it and if you wish to share the code genrated by you feel free to comment down below. What is if-else statement? if-else statement is basically the conditional statement where only one we be executed if the condition evaluates true the code inside the if statement shall be executed or if the condition evalutes false the else statement shall be executed . Now the condition is written inside the if statement and there is no condition in the else block. What is the syntax of if-else in java? Syntax:- if (condition){ statement 1 statement 2 statement 3 ............. } else{ ...