I\'m working in Java on a project that requires me to make a few \'container\' classes, if you will. Here is a simple version of one:
public class Pair{
You can override the toString() method of your custom class and print whatever information you want.
toString()
@Override public String toString() { return .....; }