Here you can find the source of toAnotherMonthColor(String value, String type)
public static String toAnotherMonthColor(String value, String type)
//package com.java2s; //License from project: Open Source License public class Main { public static final String ANSI_RESET = "\u001B[0m"; public static final String ANSI_YELLOW = "\u001B[33m"; public static final String WEB_VIEW = "web"; public static final String CONSOLE_VIEW = "console"; public static String toAnotherMonthColor(String value, String type) { if (type.equals(WEB_VIEW)) return "<td class=\"anotherMonthColor\">" + value + "</td>"; else if (type.equals(CONSOLE_VIEW)) return ANSI_YELLOW + value + ANSI_RESET; else// w w w. j a va 2 s. c o m return value; } }