public interface Graphic{void method(int x, int y){}} java code example
Example: Write a simple java swing application that will display rectangle graphics as shown in the picture below:
Color myColor = new Color(r,g,b);
Color myColor = new Color(r,g,b);