Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class ex4 {
- public static void main(String[] args) {
- // Leia um nome e escreva uma pequena frase usando o nome lido.
- String nome;
- Scanner entrada = new Scanner(System.in);
- System.out.println("Digite o seu nome:");
- nome = entrada.nextLine();
- System.out.println("O nome que voce digitou foi:" + nome);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement