// Assignment 0 // Due: Jan. 31, 2015 // Author: John Wang // Instructor: Sr. Wang // Goal: Compare two num. and find the bigger one class Bigger { public static void main(String[] args) { int a = 10; int b = 7; int m = findMax(a, b); // check outPut("m = " + m); outLine(); // 100, 200 --> big outPut(findMax(100, 200)+" "); outPut("\n\nDone.\n\n"); } //--------------------------------------- private static void outPut(String str) { System.out.println(str); } //---------------------------------------- private static int findMax(int a, int b) { int temp = a; if(temp < b) temp = b; return temp; } //---------------------------------------- private static void outLine() { outPut("--------------"); } }