Posts by GBP125 • 1 point
1 post
-
0
votes1
answer21
viewsQ: I’m trying to enter a name and then play it, but I want to make it only possible to put letters
import javax.swing.JOptionPane; public class Exer { String name1; public void name1() { String name1 = JOptionPane.showInputDialog("Por favor informe um nome"); try { System.out.println("Nome:" +…