diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-10-01 11:27:11 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-10-01 11:27:11 +0000 |
commit | 633ee309f148eba3be0388ce9ae368e2c81f05f1 (patch) | |
tree | 0221257572a8e3dac3f86032c1b6fb9771070966 /sources/ch/epfl/lamp/util/Pair.java | |
parent | 8bf7aa51bf0ca71a25271c57c1e2765b59ac9dea (diff) | |
download | scala-633ee309f148eba3be0388ce9ae368e2c81f05f1.tar.gz scala-633ee309f148eba3be0388ce9ae368e2c81f05f1.tar.bz2 scala-633ee309f148eba3be0388ce9ae368e2c81f05f1.zip |
- Added a toString() method
Diffstat (limited to 'sources/ch/epfl/lamp/util/Pair.java')
-rw-r--r-- | sources/ch/epfl/lamp/util/Pair.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/ch/epfl/lamp/util/Pair.java b/sources/ch/epfl/lamp/util/Pair.java index 0e0b0a3f93..1b755ca18a 100644 --- a/sources/ch/epfl/lamp/util/Pair.java +++ b/sources/ch/epfl/lamp/util/Pair.java @@ -21,4 +21,7 @@ public class Pair { this.fst = fst; this.snd = snd; } + public String toString() { + return "Pair(" + fst + ", " + snd + ")"; + } } |