title: How to use a method with a char input and a boolean output?
body: <p>Thank you everyone for your answers ! One more question: how do i print out the boolean value? System.out.println(goodBase) does not seem to work </p>
  
  <pre><code>public class Dna {
        public static void main(String[] args){
        aBase('A');
       }
  
        public static boolean aBase (char c) {                 
          char [] charArray = { 'A', 'G', 'C', 'T' };
          boolean goodBase;
  
          if (c == 'A' || c == 'G' || c == 'C' || c == 'T') 
          {
            return true;     
          } 
          else 
          {
            return false;
          }
        }  
      }
  </code></pre>
  
  <p>Thanks ! </p>