Java tutorial
//package com.java2s; public class Main { public static String getColorText(String text, String colorValue) { StringBuffer sb = new StringBuffer("<font color=\"#"); return sb.append(colorValue).append("\">").append(text).append("</font>").toString(); } }