Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { static String getColorValues(int color) { return String.format("%06x", (0xFFFFFF & color)); } }