Here you can find the source of color(String msg)
public static String color(String msg)
//package com.java2s; //License from project: Open Source License public class Main { public static String color(String msg) { return msg.replace('&', '\u00A7'); }// ww w . j a v a 2s. c o m }