GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaTutorial/src/20_MethodOverloading.java at master · KumiM01/JavaTutorial Expand file tree/ Copy path20_MethodOverloading.javaMore file actions 24 lines (18 loc) · 354 Bytes / Copy path20_MethodOverloading.javaFile metadata and controls24 lines (18 loc) · 354 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 /** * * Method Overloading: Same name but different method signature * */ public class Main { public static void main(String[] args) { add(); add(1.2f, 3.4f); } private static void add() { int sum = 3 + 4; System.out.println(sum); } private static void add(float a, float b) { double sum = a + b; System.out.println(sum); } } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |