Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String getThemeAlphaColor(int alpha) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("#");
        stringBuilder.append(String.format("%02x", alpha * 255 / 100));
        stringBuilder.append("12B7F5");

        return stringBuilder.toString();
    }
}