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



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. when I exported the data to excel there is a value
View Tutorial          By: mizhelle at 2015-10-10 13:17:56

2. good one
View Tutorial          By: yogesh at 2010-07-24 21:18:24

3. hey...i have a problem getting the system date in
View Tutorial          By: angel at 2010-04-03 09:27:38

4. PROGRAMMING SUPERB
View Tutorial          By: vinay sharma at 2010-10-01 05:16:23

5. if done all the steps but i have found out this er
View Tutorial          By: hisham at 2010-11-24 11:01:54

6. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

7. sir every time we are using this.wedth(for example
View Tutorial          By: praveen kumar at 2011-06-28 01:33:44

8. All in all is not a comment.bt a question How 2 us
View Tutorial          By: Tkalani at 2009-06-03 02:16:14

9. just what i needed to understand iterators, gj
View Tutorial          By: oak at 2009-04-20 15:46:39

10. hi, would you please send me the detail to impleme
View Tutorial          By: nayeem at 2009-03-13 08:47:27