Class ListTest.Pair

java.lang.Object
  extended byListTest.Pair
Enclosing class:
ListTest

public static class ListTest.Pair
extends java.lang.Object

Class Pair is a simple pair of integers with a specialization of toString to support displying a Pair in a JList.


Constructor Summary
ListTest.Pair(int i, int j)
           
 
Method Summary
 java.lang.String toString()
          Specialization of Object.toString used by JList to display the elements of a Pair in a list display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListTest.Pair

public ListTest.Pair(int i,
                     int j)
Method Detail

toString

public java.lang.String toString()
Specialization of Object.toString used by JList to display the elements of a Pair in a list display.