/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */packageejercicios;importjava.util.Scanner;/** * * @author roshka */publicclassEjercicio09{publicstaticvoidmain(String[]args){Stringpass="holaxd";Stringpass2;Scannerscr=newScanner(System.in);for(inti=1;i<4;i++){System.out.println("Ingrese contrasena: ");pass2=scr.nextLine();if(pass.equals(pass2)){System.out.println("Correcto");return;}else{System.out.println("Fallaste jaja xd");}}System.out.println("Hule amigo");}}