Java examples for Language Basics:Variable
Sketch of the balance sheet program
public class Main { public static void main(String[] args) { System.out.print("Total credit (in US dollars):\t"); System.out.println(100 + 150); System.out.print("Total debit (in US dollars):\t"); System.out.println(50 + 25 + 100); System.out.println((100 + 150) - (50 + 25 + 100)); System.out.print("Balance:"); }/* ww w . ja va2 s. c om*/ }