class Classe {
void metodo(float x) {
System.
out.
printf("Float %f\n", x
); }
void metodo(double x) {
System.
out.
printf("Double %f\n", x
); }
}
class Ideone {
public static void main
(String args
[]) { Classe classe = new Classe();
classe.metodo(1);
classe.metodo(1.0);
classe.metodo(1.0f);
}
}
Y2xhc3MgQ2xhc3NlIHsKICAgICB2b2lkIG1ldG9kbyhmbG9hdCB4KSB7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGYoIkZsb2F0ICVmXG4iLCB4KTsKICAgIH0KICAgICB2b2lkIG1ldG9kbyhkb3VibGUgeCkgewogICAgICAgIFN5c3RlbS5vdXQucHJpbnRmKCJEb3VibGUgJWZcbiIsIHgpOwogICAgfQp9CiAKY2xhc3MgSWRlb25lIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZyBhcmdzW10pIHsKICAgICAgICBDbGFzc2UgY2xhc3NlID0gbmV3IENsYXNzZSgpOwogICAgICAgIGNsYXNzZS5tZXRvZG8oMSk7CiAgICAgICAgY2xhc3NlLm1ldG9kbygxLjApOwogICAgICAgIGNsYXNzZS5tZXRvZG8oMS4wZik7CiAgICB9Cn0=