Ahh, I see. Well do you understand the basics of Object-Oriented Programming? What Chili showed you there was a constructor he had assumed you'd implement (you will need to implement everything in the object). Those of us who are helping you cannot really change your function because of two reasons, one we don't know exactly what you're trying to do, but also because the point of doing all this is so you actually learn to write the code on your own, which means doing your own research and experimentation and learning how to deal with the compiler complaining at you! That's just part of programming.
A constructor is a function that does not return a value and is named the same name as the object it is in. For example:
class Pair implements Comparable<Pair>
{
public Pair(String inStr, int inInt)
{
// It's up to you to implement it!
}
//...
}
All you should have to do is set the private values in the Pair Object to the values passed to the constructor and you should be golden. What the compiler meant in your last error was that the compareTo() function it expected to be there wasn't, and the interface you are implementing requires that function to be implemented. An Interface is much like a class, except it only provides public abstract functions and public static final variables. These are useful as wrappers to implementing classes so they can be treated the same in functions. This is one of the strengths of OOP, and you'll get much use out of it.
Anyway, I hope that helped. Remember that constructors are an important part of an object, and we didn't implement the complete object for you. I highly recommend reading through the
Java Trails from the very beginning, that should help you understand Java more.