public class IntExample1
{
public static void main(String args[])
{
// IntExample1
int x;
x = 5;
System.out.println(x);
}
}
Output from IntExample1.java:
5
--- Output Ends ---
NOTE:
You are reading previously generated output. You are not currently running
the IntExample1 application at the momement. You need to compile and run the
source code first.
To run this program:
javac IntExample1.java
java IntExample1
Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR