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. how to pass user input string (like a user entered
View Tutorial          By: saif at 2012-12-04 19:51:26

2. Getting Invalid IPv4 format J2me Midp 2.0, Asp.net
View Tutorial          By: Anup at 2013-01-02 05:11:51

3. how to run it on command prompt...i tried but it i
View Tutorial          By: gk at 2013-11-15 15:54:51

4. can you non grab the data direct from the vector w
View Tutorial          By: paul at 2013-08-30 11:22:04

5. detailed article.
I found this one better t

View Tutorial          By: Neo at 2013-05-04 16:42:12

6. Hi to all,

I worked on this project

View Tutorial          By: Ashish Agrawal at 2013-06-05 08:38:16

7. Hi,

I am using this code and gettin

View Tutorial          By: Akanksha at 2014-01-20 10:31:31

8. Hi sir,
please send some sample code for sp

View Tutorial          By: Kruttika at 2015-07-07 05:14:14

9. To DD -

The comment you just posted

View Tutorial          By: Alex at 2011-09-30 10:36:11

10. Hi,
My problem is that how to connect the r

View Tutorial          By: Twahie at 2011-03-21 05:31:06