title: Why can't I use the print() or println() method in java.io.PrintStream as it is after importing the class?
body: <p>Apologies for this silly question, but while I was learning java classes, I tried the following</p>
  
  <pre>
  javap -c java.lang.System | grep -i out
    public static final java.io.PrintStream out;
  
  javap java.io.PrintStream | grep print
  public void print(boolean);
  public void print(char);
  public void print(int);
  public void print(long);
  public void print(float);
  public void print(double);
  public void print(char[]);
  public void print(java.lang.String);
  public void print(java.lang.Object);
  public void println();
  public void println(boolean);
  public void println(char);
  public void println(int);
  public void println(long);
  public void println(float);
  public void println(double);
  public void println(char[]);
  public void println(java.lang.String);
  public void println(java.lang.Object);
  public java.io.PrintStream printf(java.lang.String, java.lang.Object...);
  public java.io.PrintStream printf(java.util.Locale, java.lang.String, java.lang.Object...);
  </pre>
  
  <p>And I tried to see if I can import <code>java.io.PrintStream</code> and use <code>print()</code> or <code>println()</code> as it is, instead of <code>System.out.println()</code>. </p>
  
  <pre><code>import java.io.PrintStream;
  println('a');
  </code></pre>
  
  <p>And it came out with a compile error saying</p>
  
  <pre>
  Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
      The method print(char) is undefined for the type array
      at array.main(array.java:16)
  </pre>
  
  <p>Why can't I use <code>println()</code> as it is after importing <code>java.io.Printstream</code> ?</p>