// Exercício 2.21 - Pagina 133 - Java como programar Deitel 4a edição // Modifique o programa que você criou no exercício 2.20 para exibir as formas em um diálogo JOptionpane.PLAIN_ME // SSAGE. O programa exibe as formas exatamente como no Exercicio 2.20? import javax.swing.JOptionPane; import java.lang.String; public class cosl2 { public static void main ( String args[] ) { // resp = System.out.println("********* *** * * " ); // resp = System.out.println("* *\t *\t * *** * * " ); // resp = System.out.println("* *\t * * ***** * * " ); // resp = System.out.println("* *\t * * * *\t * " ); // resp = System.out.println("* * * * * * \t * "); // resp = System.out.println("* * * * * * * "); // resp = System.out.println("* * * * * * * "); // resp = System.out.println("* * * * * * * "); // resp = System.out.println("********* *** * * "); JOptionPane.showMessageDialog(null," ********* *** * *\n * * * * *** * * ", "Formas", JOptionPane.PLAIN_MESSAGE ); System.exit( 0 ); } }