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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. i want to know the step by step process of vb.net
View Tutorial By: moumita das at 2012-12-01 12:28:35
2. I want to enter data from a textbox to recordstor
View Tutorial By: Rahul Maurya at 2010-04-10 01:04:51
3. hi friends i hav project work in this topic so pls
View Tutorial By: sullan at 2011-05-08 12:08:56
4. The site is too informative. I just like their imm
View Tutorial By: Priyadarshi Tripathi at 2010-10-26 23:44:46
5. why treeSet always disply ascending order?
View Tutorial By: swati at 2013-07-18 04:57:37
6. Thank you very much.
View Tutorial By: allcracked at 2013-09-11 19:10:20
7. I wont to know about every thing of java
View Tutorial By: susantha at 2009-10-11 09:35:40
8. while run program i got this error
The serv
View Tutorial By: jai at 2009-09-04 04:38:39
9. hi
View Tutorial By: raj at 2010-02-12 02:48:09
10. the 2 not required lines
1) #include
View Tutorial By: saurabh at 2012-02-20 06:33:57