October 4, 2012 / IST / Language.

Print a sentence in multiple lines

import javax.swing.JOptionPane;
public class MP1
{
 public static void main(String args[])
 {
  JOptionPane.showMessageDialog(null,"HI !\nI am\nJAVA");
 }
}