printing the output using print stream

printing the output using print stream

printing to console

//printing the output using printstream object

import java.io.PrintStream;

public class PrintOut{

   public static void main(String[] args){
   
      PrintStream ps = new PrintStream(System.out);
   ps.println("pring the output");
   }
}