Comment

Praveen.N.Pagi
Compares the three numbers.,
November 19, 2008 at 4:44 AM

class Largernumber
{
public static void main(String[] args)
{
int x=600, y=700, z=6100;
if (x>y)
{
if (x>z)
{
System.out.println("x is greater");
}
else
{
System.out.println("z is greater");
}
}
else
{
if (y>z)
{
System.out.println("Y is greater");
}
else
System.out.println("Z is greater");
}
}
}
View All Comments | View Tutorial
Related Tutorial and Articles
General

Calculate the Sum of three Numbers
Calculate the Sum of Three Numbers   ... . In this section you will learn how to calculate the sum of three numbers by using three... call the main method. To get the values of the three numbers call the overloaded

Java Beginners

Perfect Numbers - Java Beginners
+ 2 + 3 Write a java program that finds and prints the three smallest perfect numbers. Use methods   Hi Friend, Try the following code: public

General

Find HCF of three numbers in Java Program
Find HCF of three numbers in Java Program In this java tutorial section, you... Common Divisor) of three numbers. As you already know that HCF or GCD .... Suppose there are three numbers 4,8 and 12. Factors of 4=1,2,4 Factors of 8=1,2,4,8

Java Beginners

prime numbers - Java Beginners
prime numbers  Write a java program to find the prime numbers between n and m

Java Beginners

random numbers - Java Beginners
random numbers  write a program to accept 50 numbers and display 5 numbers randomly  Hi Friend, Try the following code: import...); System.out.println("Enter 10 numbers: "); for(int i=0;i<10;i

Java Beginners

recursion numbers - Java Beginners
recursion numbers  I need to use recursion to test all values from 0 to 20 and see if they are contain in a 1-D array with values: 2,4,6,8,10,12,14,16,18,20. The results of all numbers from 0-20 will be printed

Java Beginners

random numbers - Java Beginners
to display the random numbers, but not twice or more. I mean i need a number to be display once. This code allows some numbers to be displayed more than once. Hi... Scanner(System.in); System.out.println("Enter 10 numbers: "); for(int i=0;i<10;i

Java Beginners
Java Beginners

Add two big numbers - Java Beginners
Add two big numbers - Java Beginners  Hi, I am beginner in Java and leaned basic concepts of Java. Now I am trying to find example code for adding big numbers in Java. I need basic Java Beginners example. It should easy

Java Beginners

adding two numbers - Java Beginners
information : http://www.roseindia.net/java/ Thanks

Java Beginners
Java Beginners

finding the prime numbers
about your problem. http://www.roseindia.net/java/beginners/Prime_number.shtml...finding the prime numbers  Hi, I am a beginner to java and I have problem with the code in finding the prime numbers, can someone tell me about

Java Beginners

Finding all palindrome prime numbers - Java Beginners
Finding all palindrome prime numbers  How do i write a program to Find all palindrome prime numbers between two integers supplied as input (start and end points are excluded

Java Beginners

Printing numbers in pyramid format - Java Beginners
Printing numbers in pyramid format  Q) Can you please tel me the code to print the numbers in the following format: 1 2 3 4 5 6 7 8 9 10   Hi Friend, Try

Java Beginners

interest and amount for three yeaers
interest and amount for three yeaers  Mr.Shyam lal Agarwal invests certain sum at 5% per annum compound interest for 3 years .write a program in java to calculate : a) the interest for the 1st year b) the interest for the 2nd

Java Beginners

automorphic numbers
automorphic numbers  how to find automorphic number in java   Hi Friend, Pleas visit the following link: Automorphic numbers Thanks

Java Beginners

how to add to numbers in java
how to add to numbers in java  how to add to numbers in java

Java Beginners

Prime Numbers
Prime Numbers  Create a complete Java program that allows the user to enter a positive integer n, and which then creates and populates an int array with the first n prime numbers. Your program should then display the contents

JavaScript Questions

defining numbers in Java Script
defining numbers in Java Script  Explain about defining numbers in Java Script

General

Three Dimensional Array program
Three Dimensional Array program       This is a very simple Java program. In this program we will learn how to use three dimensional array. Firstly, we have to define class

Java Beginners

Generating random numbers in a range with Java
Generating random numbers in a range with Java  Generating random numbers in a range with Java

Java Interview Questions

Java program - convert words into numbers?
Java program - convert words into numbers?   convert words into numbers?   had no answer sir

Java Beginners

permutstion of numbers in java
permutstion of numbers in java  Is it possible to enter the number in a char so that permutation of a number can be acheived which will be in the form of string????? here is the coding i did...it worked really well when i

Java Beginners

Java Pyramid of Numbers
Java Pyramid of Numbers  Hi, I want to know how the code to print the pyramid below works. It uses nested for loops. Pyramid: 1 2 1 2

JSP Servlet Questions

odd numbers with loop
odd numbers with loop  get the odd numbers till 100 with for,while loop   Java find odd numbers: class OddNumbers { public static void main(String[] args) { for(int i=1;i<=100;i

Java Beginners

core java - Java Beginners
-in-java/ it's about calculating two numbers Java Program Code for calculating two numbers http://www.roseindia.net/java/java-conversion/calculating-three...core java  can we write a program for adding two numbers without

Java Beginners

Sum of first n numbers
Sum of first n numbers  i want a simple java program which will show the sum of first n numbers....   import java.util.*; public class...; } System.out.println("Sum of Numbers from 1 to "+n+" : "+sum

Java Beginners

Divide 2 numbers
Divide 2 numbers  Write a java program to divide 2 numbers. Avoid division by zeor by catching the exception.   class Divide { public static void main(String[] args) { try{ int num1=8

Java Interview Questions

EVEN NUMBERS - Java Interview Questions
EVEN NUMBERS  i want program of even numbers?i want source code plz reply?  Hi Friend, Try the following code: class EvenNumbers... counter = 0; System.out.println("Even Numbers are:" ); for (int i

Java Beginners

Applet for add two numbers  what is the java applet code for add two numbers?   import java.awt.Graphics; import javax.swing.*; public...); add(text2); label3 = new Label("Sum of Two Numbers

Java Beginners

java - Java Beginners
java  Q 1- write a program in java to generate Armstrong numbers... as three hundred sixty five? Q14 - write a program in java to accept...-conversion http://www.roseindia.net/java/beginners I hope this will help you

Java Beginners
Framework Questions

Textbox allows only numbers in java wicket
Textbox allows only numbers in java wicket  Please provide me wicket code for text box that allows only numbers to type. Thank you

Java Beginners

Blocking a user when he enters his password worng for three times ??
Blocking a user when he enters his password worng for three times ??  ... password wrong foe three times .. his account should be block for a day ? how can that be done using java ? please help

Java Code Examples

Java Find Automorphic numbers
Java Find Automorphic numbers In this section, you will learn how to find the automorphic numbers between 1 and 1000. Automorphic numbers are the numbers... of number 6 at the end. Here we are going to find the automorphic numbers between 1

Java Beginners

java - Java Beginners
java  write a program the highest common factor of three numbers.  Hi Friend, Try the following code: import java.util.*; public...); System.out.println("HCF of three numbers "+num1+","+num2+" and "+num3

Java Beginners

Java program using stateful session - Java Beginners
Java program using stateful session   Write a program using stateful session bean to add three numbers by accepting input from the user

Java Interview Questions

print 100 numbers using loops
print 100 numbers using loops  how to print from 1 to 100 using...); } } } Thanks   class Numbers { public satic void main...;a++) { System.out.println("val of a is ="+a); } } }   How java

Java Beginners

Java errors - Java Beginners
Java errors  I need help sorting parallel arrays. I've done about 75... a list of names, the other a list of corresponding numbers. One sort must... uploaded three files to rapidshare.com: 1. the main class: link:- http

General

How to Add Complex Numbers Java In this Java tutorial section, you will learn how to add complex Numbers in Java Programming Language. As you are already aware of Complex numbers. It is composed of two part - a real part and an imaginary

Java Beginners

java Program - Java Beginners
java Program  1. Write a java program to accept 10 numbers in an array and compute the sum of the square of these number. 2. Wrtie a java program that reads in three strings from the command line arguement and arrange them

Java Tips and Examples

Add two big numbers       In this section, you will learn how to add two big numbers. For adding two numbers implement two big decimal numbers then apply the Sum() method

Java Tips and Examples

Write a program to list all even numbers between two numbers
Write a program to list all even numbers between two numbers       Java Even Numbers - Even Numbers Example in Java: Here you will learn to write a program for listing out

Java Beginners

Java - Java Beginners
of numbers as 8, 12, 9, 1, 7, 4, 2, 89, 11. (b) Write a pseudo code algorithm... codes (sorting and partitioning) to Java. It should be able to execute any set...-of-three-partitioning (e) Briefly describe the bubble sort algorithm, compare

Java Beginners

To find first two maximum numbers in an array
To find first two maximum numbers in an array  Java program to find first two maximum numbers in an array,using single loop without sorting array

JDBC Questions

write a java program to print marklist of n students. input Register number, name and marks of three subjects.
write a java program to print marklist of "n " students. input Register number, name and marks of three subjects.  write a java program to print marklist of "n " students. input Register number, name and marks of three subjects

Java Technology Tutorials

Java write even numbers to file
Java write even numbers to file In this section, you will learn how to write the even numbers to file. By using the PrintWriter class, you can write any type... started a loop for numbers 1 to 50. If the number is totally divided by 2

Java-Tutorials

Java examples for beginners
of examples. Java examples for beginners: Comparing Two Numbers The tutorial provide...In this tutorial, you will be briefed about the word of Java examples, which help to understand functioning of different Java classes and way. It also

Java Beginners

program - Java Beginners
1. Write a program that reads three numbers and an integer n. The program should print the n numbers of a series where each integer in the series is the sum of the previous three integers in the series.  please show me code okk

Java Beginners

(); int sum=a+b+c; System.out.println("Addition of three numbers= "+sum...add number  Q. write a programe to add three number. The number input should be run time.  Hi Friend, Try the following code: import

Java Beginners

Arrays - Java Beginners
a program called ThreeArrayLists.java that declares three arrayLists referenced...-precision numbers. * The numbers that should be stored in price... * The numbers that should be stored in quantity are 4, 8.5, 6, 7.35, 9, 15.3

Java Beginners

Arrays - Java Beginners
square) using java and I would like to separate the coumns using the pipe symbol and the rows using the hyphen symbol. How do I go about it? The generated numbers are staggered and not in line so how do I also specify three spaces before

Java Tips and Examples

Beginners Java Tutorial
Beginners Java Tutorial     ... with the Java Programming language. This tutorial is for beginners, who wants to learn Java from scratch. In this beginners Java Tutorial you will learn how

Java Beginners

read a positive real numbers from highest to lowest
read a positive real numbers from highest to lowest  write a java program that will read a sequence of 10 positive real nos. entered by the user and will print the same numbers in sorted order from lowest to highest using arrays

Java Beginners

i want to create website,with manu with three level submenu on top side of page please send me code java

Java Beginners

Java codes - Java Beginners
numbers in a array. Ex#4. Write a java program that declares an array...Java codes  Ex#1. Write a java programe that declares 25 characters... of the index value and the last 25 components are equal to three times the index

Java Beginners

java - Java Beginners
and output a table giving the different numbers of vowels. (b) Is every Java... executed in a try−catch−finally statement. In java, there are three...java  Q.1. (a) Write a program in Java to perform the addition of two

General

JavaScript array of numbers
in understanding 'Java Script array of numbers'. For this we use  Java... JavaScript array of numbers   ... print the list of arrays of numbers.

General

Add Two Numbers in Java     ... these arguments and print the addition of those numbers. In this example, args.... These passed arguments are of String types so these can't be added as numbers

Java Beginners

greatest of 3 numbers using classes and functions.
greatest of 3 numbers using classes and functions.  WAP to calculate greatest of 3 numbers using classes and functions with parameters through input in main?   Java Find Largest Number import java.util.*; class

Java Tips and Examples

Comparing Two Numbers
Comparing Two Numbers       This is a very simple example of Java that teaches you the method of comparing two numbers and finding out the greater one. First of all, name a class

Core Java

Swapping of two numbers in java
Swapping of two numbers in java In this example we are going to describe swapping of two numbers in java  without using the third number in java. We... values from the command prompt. The swapping of two numbers is based on simple

Java Beginners

Component gui - Java Beginners
Component gui  Can you give me an example of Dialog in java Graphical...; String str; // Temporary storage for JOptionPane input. //Read three numbers from dialog boxes. str = JOptionPane.showInputDialog(null

Java Beginners

; System.out.println("Sum of two numbers = "+sum); } void add(int a,int b,int c) { int sum=a+b+c; System.out.println("Sum of three numbers = "+sum); } public static... }  Hi Friend, In Java, the methods having the same name within

Java Beginners

Program to display palindrome numbers between some range
Program to display palindrome numbers between some range  Hi!I want a java program to display palindrome numbers between 100 to 1000.can you please explain me the logic with an example   import java.util.*; public

Java Beginners

Pass the array please.. - Java Beginners
PassTheArrayPlease.java that asks the user to enter five numbers and then stores them in an array. When finished receiving the numbers, the program should pass the array to a method called averageNumbers. This method should average the numbers

Java Beginners

java programming - Java Beginners
java programming  asking for java code, solving three unknowns in three equations..I need the thx ahed

Java Beginners

Arrays - Java Beginners
2 4 6 8 3 3 6 9 12 4 4 8 12 16 Your number square should have the numbers 1... every cell contains 3 characters (if your number has less than three characters prefix it with spaces to make up the numbers). Also use hyphens (-) to separate

General

Swapping of two numbers
Swapping of two numbers       This Java programming tutorial will teach you the methods for writing program to calculate swap of two numbers. Swapping is used where  you want

Java Beginners

Java - Java Beginners
Java  How to add and print two numbers in a java program single... : http://www.roseindia.net/java/beginners/AddTwoBigNumbers.shtml Thanks...; System.out.prinln(a+b);   Hi friend, Code to add two number in java class

Java Beginners

java beginners - Java Beginners
java beginners   pl. let me know how to exterat the decimal numbers from a number i want a java program for it Example if input 12.453 OUTPUT 12 .453 if input 25.7657 OUTPUT 25

SQL Question

Three Way Matching
Three Way Matching  hello, What is Three Way Matching?   hii, In Three way matching the following documents are compare:- Purchase order Receipt of Items/Packing slip Invoice

Java Beginners

java - Java Beginners
java  explain the three tier architecture in detail

General

Calculate sum of even and odd numbers in Java
Calculate sum of even and odd numbers In this section, you will learn how to read the file that contains even and odd numbers and calculate their sum separately. To do this, first of all, we have found all the even and odd numbers from 1

Java Tips and Examples

Determining the largest number
;  This example of Java programming will teach you the coding for determining the largest number amongst three. Here we have taken three integers as x = 500, y = 70 and z = 3000. After defining these three integers under

Java Beginners

arrays - Java Beginners
and the smallest values by using the above three methods. ? The program prints the largest...(System.in); System.out.println("Enter numbers: "); for(int i=0;i max

Java Beginners

Generating Random Numbers to Fill array. Java Beginner needing help!
Generating Random Numbers to Fill array. Java Beginner needing help!  Hello all! I am new to this site, and Java programming. My problem is: Write a program that produces random permutations of the numbers 1 to 10. eg

Java Beginners

java"oop" - Java Beginners
with the Java?  Hi i hope you understand it.//To print the even numbers...){ System.out.println(e); } }}Java program to display all even numbers http://www.roseindia.net/java/beginners/AllEvenNum.shtml-------------------Amar

Java Beginners

how to write a program in java to print numbers in equalateral triangle
how to write a program in java to print numbers in equalateral triangle  the output must be 1 324 76589   Here is an example of pattern 1 2 3 4 5 6 7 8 9 Example: public class NumberTriangle{ public

Java Beginners

java beginners - Java Beginners
java beginners   to Write a program to convert entered number... is = three five six. thanks   Hi Friend, Try the following...", "Three","Four","Five", " Six"," Seven", "Eight"," Nine","Ten

Java Beginners

java programming - Java Beginners
java programming  in Java, using"classes", write a code with the name and ages of three people

Java Beginners

Create a multi-thread program that calcualtes values for a list of numbers
for a list of numbers. This program will be passed a series of numbers on the command line and will then create three separate worker threads. One thread will determine the average of the numbers, the second will determine the maximum value

General

Java Glossary Term - D
be categorized in three part according to the three flavours of Java Technology... Java Glossary Term - D      ... that is used for converting the decimal numbers into Strings. This class is also

Java Beginners

Java - Java Beginners
Java    Write a multi-threaded Java program to print all numbers..., 13, etc.). Design a thread that generates prime numbers below 100,000 and writes them into a pipe. Design another thread that generates fibonacci numbers

Java Beginners

Java code - Java Beginners
Java code  how to make a program in java(Jbutton) if there is a combination numbers inorder to exit the program else the background color of the frame will turns red

Java Beginners

java - Java Beginners
java  Write a multi-threaded Java program to print all numbers below..., etc.). Design a thread that generates prime numbers below 100,000 and writes them into a pipe. Design another thread that generates fibonacci numbers

Java-Tutorials

Java basics for beginners
With this article we are introducing beginners in Java with its basics. Java... aspects of Java. Here is more tutorials for Java coding for beginners... Understanding Hello World Java Program Java Beginners

Java Beginners

RASTER TRIANGLES!!! - Java Beginners
also that the triangle i have made is also of size 5, then i will make three more... 3 numbers from the keyboard giving (a) the size of each triangle (i.e. width

Java Beginners

java - Java Beginners
largest = -1; int numbers[] ={20,90,10,50,60,80,100,40,30}; for (int i=0;i < numbers.length;i++){ if(largest < numbers[i] ){ secondlargest = largest; largest = numbers[i]; } if(secondlargest < numbers[i] && largest != numbers

Java Beginners

java - Java Beginners
java  Design a class for Complex numbers in Java. In addition to methods for basic operations on complex numbers, provide a method to return... the following link: http://www.roseindia.net/tutorial/java/core/complexNumbers.html

Java Beginners

jav beginners - Java Beginners
jav beginners  pl. let me know the logic and the program to print the prime and twin prim numbers thanks  Hi Friend, Try... =i; } } System.out.println("Prime Numbers are: "+primeNo); } } Thanks

General

Which is Faster - LinkedList or ArrayList?
created three function which first adds the element and then removes

Java Beginners

java program - Java Beginners
java program  hi sir, i want a simple java program to pick... main (String [] arg) { Scanner scan = new Scanner (System.in); int [] numbers... numbers:"); for (int i=0; i largestNumber) { largestNumber = numbers[i

Java Beginners

core java - Java Beginners
core java  can we define a function in java and answer is yes, then how we define a function in java pls provide code?  Hi Friend, class Numbers{ public int add(int num1,int num2) { return num1+num2

Java Beginners

for loop - Java Beginners
for loop  write a program to print the product of all the numbers from 1 to N(this is also known as factorial of the numbers

Java Beginners

for loop - Java Beginners
for loop  write a program to print the product of all the numbers from 1 to N(this is also known as factorial of the numbers

Java Beginners

JAVA - Java Beginners
a multi-threaded Java program to print all numbers below 100,000 that are both... methods in Java. 2. Design a thread-safe implementation of Queue class. Write... that generates prime numbers below 100,000 and writes them into a pipe.Design

Java Beginners

JAVA - Java Beginners
a multi-threaded Java program to print all numbers below 100,000 that are both... methods in Java. 2. Design a thread-safe implementation of Queue class. Write... that generates prime numbers below 100,000 and writes them into a pipe.Design

Java Beginners

java program - Java Beginners
://www.roseindia.net/java/beginners/MatrixMultiply.shtml Thanks...java program   Pl. let me know about the keyword 'this' with at least...(); System.out.println("The area of a Rectangle is : " + area); } } 2)class Numbers

Java Beginners

java - Java Beginners
java  All the data types uses in java and write a program to add 2 numbers.  Hi Friend, Please visit the following links to know about all the data type used in Java : http://www.roseindia.net/java/language/java