title: How to print a boolean value?
body: <p>I am trying to print out the boolean value, but it does not seem to work (I get an "unreachable statement" error and "missing return statement").</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class DnaTest {
    public static void main(String[] args){
    aGoodBase('A');
   }
  
    public static boolean aGoodBase (char c) {                
      char [] charArray = { 'A', 'G', 'C', 'T' };
      boolean aBase;
  
      if (c == 'A' || c == 'G' || c == 'C' || c == 'T') 
      {
        return true;     
      } 
      else 
      {
        return false;
      }
      System.out.println(aBase);
    }  
  }   
  </code></pre>
  
  <p>Thanks !</p>