Simple Color Detection JAVA Program