title: ANTLR-4.7.1：The type ANTLRInputStream is deprecated
body: <pre><code>import  org.antlr.v4.runtime.*;
  import  org.antlr.v4.runtime.tree.*;
  
  public class Test{
  public static void main(String[] args) throws Exception{
  
      ANTLRInputStream input = new ANTLRInputStream(System.in);
  
      ArrayInitLexer lexer = new ArrayInitLexer(input);
  
      CommonTokenStream tokens = new CommonTokenStream(lexer);
  
      ArrayInitParser parser = new ArrayInitParser(tokens);
  
      ParseTree tree = parser.init();
      System.out.println(tree.toStringTree(parser));
  
  
  }
  }
  </code></pre>
  
  <p>I have found the official API (<a href="http://www.antlr.org/api/Java/index.html" rel="noreferrer">http://www.antlr.org/api/Java/index.html</a>) , but I still don't know how to solve it.</p>