import java.io.*; import java.lang.*; class StaticSub { public static void main(String args[]) { int n1=20,n2=10; //Static Defining of Integer Values n1-=n2; // Equal to n1=n1-n2 System.out.println("Subtraction: "+n1); } }
OUTPUT:
Compilation :javac StaticSub.java Execution :java StaticSub Subtraction:10