diff --git a/src/exeploreGame/ExeploreGame.java b/src/exeploreGame/ExeploreGame.java index 3aa7388..7cbd441 100644 --- a/src/exeploreGame/ExeploreGame.java +++ b/src/exeploreGame/ExeploreGame.java @@ -6,12 +6,12 @@ public class ExeploreGame { final static String userId; public static void main(String[] args) { - while(true){ + while (true) { final String password = JOptionPane.showInputDialog(null, "Enter Password", "Password", JOptionPane.INFORMATION_MESSAGE); - if(password ==null)continue; + if(password == null) continue; if(password.compareTo("cheema")==0)break; } - while(true){ + while (true) { final userId =JOptionPane.showInputDialog(null,"Enter User ID","user id",JOptionPane.INFORMATION_MESSAGE); if(userId==null)continue; if(userId.compareTo("")!=0)break;