Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
/**
* [0, 255]
*
* @param alpha
* @return
*/
static public int validAlpha(int alpha) {
int result = Math.max(0, Math.min(alpha, 255));
return result;
}
}