is this correct way to implement Mediator design pattern in java ?
public class chat {
public static void showMesg(Color c , String msg){
System.out.println(new Date().toString() +" "+c + " " + msg +" ");
}
}
then i call the "ShowMesg" method in method Draw of red class
public class Red implements Color {
public void draw() {
chat.showMesg(this, "Hey this is Red :D");
System.out.println("Red color");
}