org.limewire.collection
Class IntPair
java.lang.Object
org.limewire.collection.IntPair
public class IntPair
- extends Object
Provides the storage of two integers. No mutators or accessor methods needed.
IntPair p = new IntPair(1,2);
System.out.println("Pair is " + p.a + " & " + p.b);
Output:
Pair is 1 & 2
|
Field Summary |
int |
a
|
int |
b
|
|
Constructor Summary |
IntPair(int a,
int b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
a
public int a
b
public int b
IntPair
public IntPair(int a,
int b)
Copyright © 2009. All Rights Reserved.