Java Color From toColor(String str)

Here you can find the source of toColor(String str)

Description

to Color

License

Open Source License

Declaration

static String toColor(String str) 

Method Source Code

//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*/
}

Related

  1. toColor(boolean val)
  2. toColor(String hexString)