Write a JAVA program to display (15,23) by using print and  (34,45) by using  println (1st way and 2nd way)  

Class XYZ
{

  static void main(String [] args)
   {

       System.out.print(15);
      System.out.println(23);
      System.out.print(34);
      System.out.println(45);



     }

}