From 55b4059274cf9db7f48c4aa5c01cab35f8a6882f Mon Sep 17 00:00:00 2001 From: Crankygirl <33200967+Crankygirl@users.noreply.github.com> Date: Sun, 29 Oct 2017 22:30:20 +0530 Subject: [PATCH] Update ExeploreGame.java --- src/exeploreGame/ExeploreGame.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;