Remote web server - Chapter 2 Introduction to Java Applications 83 Fig.

Chapter 2 Introduction to Java Applications 83 Fig. 2.20Using equality and relational operators (part 3 of 3). Fig. 2.20 The definition of application class Comparisonbegins at line 8, public class Comparison { As discussed previously, method main (lines 11 59) begins the execution of every Java application. Lines 13 17, String firstNumber; // first string entered by user String secondNumber; // second string entered by user String result; // a string containing the output int number1; // first number to compare int number2; // second number to compare declare the variables used in method main. Note that there are three variables of type Stringand two variables of type int. Remember that variables of the same type may be declared in one declaration or in multiple declarations. If more than one name is declared in a declaration, the names are separated by commas (,), as in String firstNumber, secondNumber, result; Copyright 1992 2002 by Deitel & Associates, Inc. All Rights Reserved. 7/2/01
Note: If you are looking for cheap webhost to host and run your apache application check Vision apache web hosting services

Leave a Reply