Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { final public static int encodeHexStrToInt(String color) { return Integer.getInteger(color, 0); } }