B-tech-2-1/ClassWork/Java/Unit-1/2.An Overview of Java/2.Example2.java
<filename>B-tech-2-1/ClassWork/Java/Unit-1/2.An Overview of Java/2.Example2.java/*
Here is another short example.
Call this file "Example2.java".
*/
class Example2 {
    public static void main(String args []) {
    int num; // this declares a variable called num
    num = 100; // this assigns num the value 100
    System.out.println("This is num: " + num);
    num = num * 2;
    System.out.print("The value of num * 2 is ");
    System.out.println(num);
    }
};