Advertisement
michael_xgrind

Teste

Sep 8th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.text.*;
  3.  
  4. public class Nome {
  5.     public static void main(String args[]) {
  6.         Scanner leia = new Scanner(System.in);
  7.         String nome, senha;
  8.         System.out.print("Nome: ");
  9.         nome = leia.next();
  10.         System.out.print("Senha: ");
  11.         senha = leia.next();       
  12.        
  13.         if (nome.equals("goku") && (senha.equals("senha"))) {
  14.     //  if ((nome == "goku") && (senha == "senha")) {
  15.             System.out.print("->\n->\n->\n");
  16.     }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement