Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isShadeOfGray(int red, int green, int blue) {
return Math.abs(Math.max(red, Math.max(green, blue)) - Math.min(red, Math.min(green, blue))) < 20;
}
}