Java Example Program / Sample Source Code
import java.awt.Color;
public class ColorEquals {
public static void main(String[] a) {
Color black = new Color(0, 0, 0); // Black color
Color white = new Color(255, 255, 255); // White color
System.out.println(black.equals(white));
}
} |
|
|