title: calling method in servlet
body: <p>Predicts.java</p>
  
  <pre><code>public class Predicts {
      public void predict() throws Exception {
      }
  }
  </code></pre>
  
  <p>Output.java</p>
  
  <pre><code>public class Output extends HttpServlet {
      @Override
      protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
      }
  }
  </code></pre>
  
  <p>In a different servlet, how do I initialise a method from Predicts.java and call it?</p>