Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Color; public class Main { static String getG(int hex) { return String.valueOf(Color.green(hex)); } }