Guest MindLess Posted March 15, 2007 Share Posted March 15, 2007 import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class password { public static void main(String args[])throws IOException { boolean pw; InputStreamReader isr= new InputStreamReader(System.in); BufferedReader stdin= new BufferedReader(isr);String password=stdin.readLine();if(password.equals("yoyo")){ pw= true;}else { pw= false;}test:while (pw){ System.out.println("you said the wrong password : "); continue test;} }} Link to comment Share on other sites More sharing options...
Guest MindLess Posted March 16, 2007 Share Posted March 16, 2007 no one knows anything to do with java :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.