title: Unreachable Statement Error Message
body: <p>I am making a simple program. When I compile it, BlueJ says "unreachable statement" and highlights "System.out.println(mystery("DELIVER"));". I'm unsure what to do. I would like it to complete the println statement and run it in a main method, but it gives me the same error.</p>
  
  <pre><code>public class Test7
  {
      public String mystery(String s)
      {
          String s1= s.substring(0,1);
          String s2= s.substring(1, s.length()-1);
          String s3= s.substring(s.length()-1);
  
          if (s.length() &lt;= 3)
              return s3 + s2 + s1;
          else 
              return s1 + mystery(s2) + s3;
          System.out.println(mystery("DELIVER"));
      }
  }
  </code></pre>