// Scott DeRuiter 8/28/2002 // Example1.java // Declares some variables and assigns some values. public class Example1 { public static void main(String[] args) { // first is declared and initialized // second is just declared int first = 5; int second; double num; char ch; boolean done; int math; second = -356; num = 2.5; ch = 'T'; done = false; int sum = first + second; math = (int)(( num * second ) / 2); System.out.println ( "\n\n" ); System.out.println ( first + " " + second ); System.out.println ( num + " " + ch ); System.out.println ( done + " " + sum ); System.out.println ( math ); // System.out.println ( first + " " + second );\ System.out.println ( "\n\n\n" ); } }