Comment on Tutorial - Nested if in java By aathishankaran



Comment Added by : Amitava Misra

Comment Added at : 2009-11-03 06:11:33

Comment on Tutorial : Nested if in java By aathishankaran
//EXAMPLE OF NESTED IF*****
//FIND OUT BIGER NUMBER AMONG 3 NUMBERS


package demo1if;

/**
*
* @author Amitava
*/
public class conif {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int i,j,k;
i=5;
j=45;
k=3;
if(i>j){
if(i>k){
System.out.println(i+"is big");
}else{
System.out.println(k+"is Big");
}


}else{
if(j>k){
if(j>i){
System.out.println(j+ "is bIg");
}else{
System.out.println(i+"i is biG");
}
}


}


// TODO code application logic here
}

}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Java program to check if user input is an even number

Archived Comments

1. I tried this with HttpUnit (using the custom Hostn
View Tutorial          By: Michael Gower at 2012-01-04 17:40:00

2. To install 32 bit java Communication API you can f
View Tutorial          By: Shailendra at 2013-04-06 14:49:44

3. Thanks for posting this :)
Being a noobie @

View Tutorial          By: C at 2008-06-23 18:17:26

4. /*Web.xml File */

<?xml vers

View Tutorial          By: Pavan Barot at 2010-07-11 23:32:35

5. Comment: Just for future readers: (apart from the
View Tutorial          By: Anonymous at 2013-05-17 08:53:20

6. the article is very useful...!
View Tutorial          By: pravin salame at 2011-05-20 11:58:28

7. Hi

Anybody plz send me the sms send

View Tutorial          By: Venky at 2008-11-19 08:33:22

8. works like a charm, though i didn't understand why
View Tutorial          By: primus at 2010-05-19 04:46:18

9. Great article! Simple and precise. Thanks!
View Tutorial          By: dz at 2014-10-06 04:36:56

10. Please add the code snippet ..
View Tutorial          By: mari selvam at 2012-08-23 10:13:51