public class Pareja
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
int |
entero
Integer element of the pair.
|
double |
real
Real element of the pair.
|
Constructor and Description |
---|
Pareja()
Default constructor.
|
Pareja(int a,
double b)
Parameter constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o1) |
java.lang.String |
toString() |
public int entero
public double real