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. ok good.But what about plug-in's Information.
View Tutorial          By: Ramarao at 2010-01-31 07:32:02

2. i want to the out put is
calander

View Tutorial          By: sampath at 2011-07-18 08:30:01

3. Just read the first page, It really attractive. Le
View Tutorial          By: Md. Sumon Bappi at 2015-05-13 10:47:00

4. If you are working with the multi-threaded program
View Tutorial          By: Prithvi at 2010-01-07 10:24:12

5. Can u tall me about the job market of J2ME.
View Tutorial          By: mimdad07 at 2009-06-26 14:40:26

6. Thanks a lot...I've been trying to fix my apache f
View Tutorial          By: L├ízaro at 2010-01-20 03:32:07

7. its amazing for me i learn a lot from it thanks..
View Tutorial          By: sufyan at 2014-10-26 14:39:34

8. really nice
View Tutorial          By: umer at 2011-06-25 06:35:19

9. hi , sending of sms is failing. Please help me in
View Tutorial          By: sudhakar at 2009-06-19 09:39:55

10. There are 11 types of people.
Those who kno

View Tutorial          By: alphachap at 2011-03-07 10:53:44