Here you can find the source of colorString(String input)
public static String colorString(String input)
//package com.java2s; //License from project: Open Source License public class Main { public static final String COLOR_CODE = "\u00A7"; public static String colorString(String input) { return input.replaceAll("&&", COLOR_CODE); }/* w w w . j a v a 2 s. c o m*/ }