A Program with Method Overloading
{"Image DocumentName": "A Program with Method Overloading", "Image ImageDescription": "// Compare.java: a class comparing different items. class Compare { static int max(int a, int b) { if( a > b) return a; else. return b; } static String max(String a, String b) if( a.compareTo (b) > 0) public static void main(String args[]) String s1 = Melbourne ; String s2 = Sydney ; String s3 = Adelaide ; int a = 10; int b = 20; System.out.println(max(a, b)); // which number is big. System.out.println(max(s1, s2)); // which city is big. System.out.println(max(s1, s3)); // which city is big.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}