| 1 | package org.armedbear.lisp; | 
|---|
| 2 |  | 
|---|
| 3 | public class DummyMethods | 
|---|
| 4 | { | 
|---|
| 5 | public String test(byte x) | 
|---|
| 6 | { | 
|---|
| 7 | return "byte"; | 
|---|
| 8 | } | 
|---|
| 9 |  | 
|---|
| 10 | public String test(char x) | 
|---|
| 11 | { | 
|---|
| 12 | return "char"; | 
|---|
| 13 | } | 
|---|
| 14 |  | 
|---|
| 15 | public String test(short x) | 
|---|
| 16 | { | 
|---|
| 17 | return "short"; | 
|---|
| 18 | } | 
|---|
| 19 |  | 
|---|
| 20 | public String test(int x) | 
|---|
| 21 | { | 
|---|
| 22 | return "int"; | 
|---|
| 23 | } | 
|---|
| 24 |  | 
|---|
| 25 | public String test(long x) | 
|---|
| 26 | { | 
|---|
| 27 | return "long"; | 
|---|
| 28 | } | 
|---|
| 29 |  | 
|---|
| 30 | public String test(float x) | 
|---|
| 31 | { | 
|---|
| 32 | return "float"; | 
|---|
| 33 | } | 
|---|
| 34 |  | 
|---|
| 35 | public String test(double x) | 
|---|
| 36 | { | 
|---|
| 37 | return "double"; | 
|---|
| 38 | } | 
|---|
| 39 |  | 
|---|
| 40 | public static void main(String[] args) | 
|---|
| 41 | { | 
|---|
| 42 | DummyMethods dummyMethods = new DummyMethods(); | 
|---|
| 43 | System.out.println(dummyMethods.test('a')); | 
|---|
| 44 | System.out.println(dummyMethods.test(1)); | 
|---|
| 45 | System.out.println(dummyMethods.test(1L)); | 
|---|
| 46 | System.out.println(dummyMethods.test(1.0)); | 
|---|
| 47 | System.out.println(dummyMethods.test(Integer.valueOf(1))); | 
|---|
| 48 | } | 
|---|
| 49 | } | 
|---|