Created
October 31, 2011 15:36
-
-
Save onlyshk/1327774 to your computer and use it in GitHub Desktop.
Simple test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
/** | |
* Test Eq<T> interface | |
*/ | |
public static void main(String[] args) { | |
Color color1 = new Color(ColorType.Red); | |
Color color2 = new Color(ColorType.Green); | |
System.out.println("Red == Green -> " + color1.eq(color1, color2)); | |
Color color3 = new Color(ColorType.Green); | |
Color color4 = new Color(ColorType.Green); | |
System.out.println("Green == Green -> " + color3.eq(color3, color4)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment