title: ByteArrayInputStream cannot be resolved to a type
body: <p>I have method which is going return the values that are going to displayed as text string.So what i'm doing is converting to <code>ByteArrayInputStream</code>.</p>
  
  <pre><code>public String method() {
      inputStream = new ByteArrayInputStream(prod().getBytes());
      return method;
  }
  </code></pre>
  
  <p><code>prod()</code> is a method which going to return the values. It is giving me an error <code>ByteArrayInputStream cannot be resolved to a type</code>. Please advise.   </p>