title: How to set condition for the input from command line? (java)
body: <p>So I need to write a program that has 3 positive Integers between 0 and 255 as command line argument (the Input), How could I set those conditions? so far i wrote:</p>
  
  <pre><code>public class RGBtoCMyk {
  public static void main(String []args){
     int r = Integer.parseInt(args[0]);
     int b = Integer.parseInt(args[1]);
     int g = Integer.parseInt(args[2]);
  
    //now i must set the conditions, that r, g and b are between 0 and 255
    }
  </code></pre>
  
  <p>If you have any ideas please help me    </p>