emotional damage
Suman Magar   Gesves, Namur, Belgium
 
 
import java.util.Scanner; // I use scanner because it's command line.<br /><br />public class Login \{<br />public void run() \{<br /> Scanner scan = new Scanner (new File(&quot;the\\\\dir\\\\myFile.extension&quot;));<br /> Scanner keyboard = new Scanner (System.in);<br /> String user = scan.nextLine();<br /> String pass = scan.nextLine(); // looks at selected file in scan<br /><br /> String inpUser = keyboard.nextLine();<br /> String inpPass = keyboard.nextLine(); // gets input from user<br /><br /> if (inpUser.equals(user) &amp;&amp; inpPass.equals(pass)) \{<br /> System.out.print(&quot;your login message&quot;);<br /> \} else \{<br /> System.out.print(&quot;your error message&quot;);<br /> \}<br />\}<br />\}
Sedang Offline
Komentar
potato chips 17 Agu 2017 @ 10:38am 
legit noob :P xD
emotional damage 15 Jul 2017 @ 9:53pm 
♥♥♥♥♥♥♥♥ ♥♥♥♥♥
Rahul Shrestha 15 Jul 2017 @ 4:46am 
Hacker noob rage hacks when he starts to lose. report him and make community clean.