Skip to main content

Posts

Showing posts with the label java

Java if-else ladder with a example program.

Introduction:-   Today we shall check about the if-else ladder it is simlar to the if-else statement only the difference is that we can combine a if statement with the else we should have a example program with the syntax and whole bunch of stuff . We also provide a download link in bellow . You are free to change the code and if you wish to share the modified code share with us in the comments. What is the Syntax of the if -else ladder or if -else if ?   Syntax:-    if(Condition){     Statement 1      Statement 2      Statement 3   ..............    } else if(condition){    Statement 1    Statement 2    Statement 3   ................. } else{     Statement 1     Statement 2    Statement 3   ................ }    How to write the java program code for the ladder ? Code Statement ...

Java if-else statment with example program.

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{ ...

Setting up java on local machine Part 1.

Introduction:-      So to set up the JAVA development enviorment we need do some setting which are basically easy. There can be of two setups which are the :-      1.  Command prompt (Actually the cmd setup)      2.  The IDE (Which are freely and licnesed) So in this post we will be seeing the Command prompt setup. What are the requirment for the setup?   The requirments for the setup are the to easy there is no back techno knowledge for the setup it is the basic requirment.   1. Internet Connection(To download the java development kit)   2. Adminstrator privilages Where to download the JAVA DEVELOPMENT KIT(JDK) ?   The JDK is nothing but a set of java tools that are given in the java standard edition which are freely downloadable from the  offical oracle site the current jdk version is 11 and by the time there shall be updates to the jdk for the time being it is the 11 edition. The fully...