Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.text.*;
- public class Nome {
- public static void main(String args[]) {
- Scanner leia = new Scanner(System.in);
- String nome, senha;
- System.out.print("Nome: ");
- nome = leia.next();
- System.out.print("Senha: ");
- senha = leia.next();
- if (nome.equals("goku") && (senha.equals("senha"))) {
- // if ((nome == "goku") && (senha == "senha")) {
- System.out.print("->\n->\n->\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement