title: i had this error in my below java code (unreachable return statement & missing return statement)
body: <pre><code>package oopTest;
  public class Chhapgar {
      public String chap(int i)
      {
          switch (i)
          {
              case 1:
                  String y = String.valueOf(i);
                  return y;
                  break ;
              default :
                  String nist = "nist";
                  return nist;
                  break;
          }
      }
  }
  </code></pre>