Here you can find the source of toColor(String str)
static String toColor(String str)
//package com.java2s; //License from project: Open Source License public class Main { static String toColor(String str) { return str.replaceAll("(&([a-fk-or0-9]))", "\u00A7$2"); }/*from w w w . ja va 2 s . com*/ }