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. Aoa. could anybody guide me about jsf with hibern
View Tutorial          By: imtiaz afridi at 2011-12-03 12:19:04

2. I want get data from Mysql into Spinner by using P
View Tutorial          By: Pravin at 2013-01-05 13:36:11

3. Good explaination, easy to understand
thank

View Tutorial          By: channaveer at 2010-05-02 05:03:21

4. Can u show how to do text to speech with servlet.
View Tutorial          By: Rotika at 2011-01-23 20:54:40

5. Can any help me to get Second line,Second word in
View Tutorial          By: Ramesh at 2012-07-21 11:12:05

6. i m new in java plz send package of simple program
View Tutorial          By: iqbal ahmad at 2009-09-07 01:26:41

7. This works great, just remember to add <uses-pe
View Tutorial          By: Nick at 2012-06-20 07:37:15

8. good
View Tutorial          By: yeoh at 2009-04-18 21:32:36

9. Can you send me the full code for sending sms usin
View Tutorial          By: Tamizh chelvam at 2014-03-24 17:30:52

10. Everything is running.... But it doesn't send....<
View Tutorial          By: uu at 2009-04-09 18:10:13