import javax.swing.JOptionPane;

public class Main {
    public static void main (String args[]) {
        String nome;
        
        nome = JOptionPane.showInputDialog(“Entre com seu nome”);
        
        JOptionPane.showMessageDialog(null, nome, “Segue seu nome”, 
                                    JOptionPane.INFORMATION_MESSAGE);
        
        System.exit(0);
        
        
    }
}
Este artigo foi útil ?
SimNão

One Reply to “[java] Um simples pegar e imprimir”

  1. Moises disse:

    Hi! I just wanted to ask if you ever have any issues with hackers?
    My lsst blog (wordpress) was hacked and I ended up losing months of hard work due to no backup.

    Do you have any solutions tto stop hackers? http://boyarka-Inform.com/

Deixe um comentário para Moises Cancelar resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Close Search Window