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

Program using concept of byte long short and int in java

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

Archived Comments

1. i get this msg when one of the clients close there
View Tutorial          By: Zero Code at 2009-07-16 14:05:14

2. Hey guys it's working. If not then remove p.waitFo
View Tutorial          By: dileep at 2013-01-04 19:51:38

3. if (fget(y,100,fp2)!=10);
what should be th

View Tutorial          By: ruqsar at 2014-02-10 10:54:32

4. wow... and Thanks...
View Tutorial          By: lasitha at 2010-07-24 21:38:50

5. Thanks mate !!!

-- Anish Sneh

View Tutorial          By: Anish Sneh at 2010-08-18 07:42:56

6. It's good working very well...............
View Tutorial          By: avinash at 2013-03-07 09:38:21

7. Respected sir,
I am trying to embed windows

View Tutorial          By: arshad at 2011-10-22 17:05:21

8. Good one.........!!!
View Tutorial          By: Shailesh Nakade at 2012-07-11 09:48:33

9. This is a great article that deals with the evolut
View Tutorial          By: JPS SASTRY at 2009-02-11 21:29:56

10. Error...!!
please send correct java code fo

View Tutorial          By: mayuri at 2013-10-20 13:26:30