Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String username;
- public static void Divi(){
- for(int x=0; x<150; x++){
- System.out.print("=");
- }
- System.out.println();
- }
- public static void Hi(){
- System.out.println();
- System.out.println(" _ _ _________ _ ");
- System.out.println(" | | | | |___ ___| | |");
- System.out.println(" | | | | | | | |");
- System.out.println(" | |_____| | | | | |");
- System.out.println(" | _____ | | | | |");
- System.out.println(" | | | | | | |_|");
- System.out.println(" | | | | ___| |___ _ ");
- System.out.println(" |_| |_| |_________| |_|");
- System.out.println();
- }
- public static void Lalisa_m(){
- // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- // Scanner pota3 = new Scanner(System.in);
- Divi();
- System.out.println("Note :\n" + "This Program cant it back" +
- "\nJust Relaunch this Program to reset"+"\nType '/logout ' To logout ''");
- Divi();
- /* System.out.println("What's your name???");
- String name = pota3.nextLine();*/
- String s1 = username.substring(0, 1).toUpperCase();
- String nameCapitalized = s1 + username.substring(1);
- //String name =pota3.nextLine();
- mloopp:
- while(true){
- Scanner pota1= new Scanner(System.in);
- System.out.println("Hi "+ nameCapitalized + "''");
- System.out.println("Choose Your Tools :");
- System.out.println("1. CalCulous" + "\n2. Getting the area of Circle" + "\n3. Getting Your Birthyear"
- + "\n4. Info");
- System.out.print("》》 ");
- String tool =pota1.nextLine();
- Divi();
- if(tool.equals("1")){
- //The start of CalCulous
- try{
- Scanner pota =new Scanner(System.in);
- Divi();
- System.out.println("Enter 1st number :");
- System.out.print("》》 ");
- int lisa1 = pota.nextInt();
- System.out.println("Enter 2st number :");
- System.out.print("》》 ");
- int lisa2 = pota.nextInt();
- System.out.println("Enter Operator :");
- System.out.print("》》 ");
- char operator = pota.next().charAt(0);
- switch(operator){
- case '+':
- System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 + lisa2) + " <<<");
- break;
- case '-':
- System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 - lisa2) + " <<<");
- break;
- case '*':
- System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 * lisa2) + " <<<");
- break;
- case '/':
- System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 / lisa2) + " <<<");
- break;
- case '%':
- System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 % lisa2) + " <<<");
- break;
- default:
- System.out.println("You input wrong OPERATOR" + "\nPlease Put [ + ] [ - ] [ * ] [ / ] [ % ] <<<");
- System.out.println("Eg.");
- System.out.println("1st number :\n" + " 11 ");
- System.out.println("2st number :\n" + " 11 ");
- System.out.println("Enter Operator :\n" + " + ");
- System.out.println("Hey "+ nameCapitalized + " Here's the answer " + ">>> " + "22" + " <<<");
- break;
- }
- }
- catch(Exception e){
- Divi();
- System.out.println("!!!>>> Letters and Something are not ALLOWED <<<!!!");
- System.out.println("!!!>>> Only Numbers is allowed on this program <<<!!!");
- Divi();
- }
- //This the end of Calculous
- }
- else if(tool.equals("2")){
- //Start
- try{
- Scanner pota2=new Scanner(System.in);
- System.out.println("Enter radius of circle:");
- System.out.print("》》 ");
- int radius = pota2.nextInt();
- System.out.print("Hey! " + nameCapitalized + " The Area of Circle is :" + (Math.PI*radius*radius) + "\n");
- }
- catch(Exception e){
- System.out.println("!!!>>> Letters and Something are not ALLOWED <<<!!!");
- System.out.println("!!!>>> Only Numbers is allowed ont this program <<<!!!");
- }
- //end
- }
- else if(tool.equals("3")){
- //Start
- Scanner pota4 = new Scanner(System.in);
- System.out.println("What's your Age?");
- System.out.print("》》 ");
- int age = pota4.nextInt();
- int yeah;
- yeah = ((66 - age) + 1952);
- System.out.println("Hey! " + nameCapitalized + " Your BirthYear Is " + ">>> "+ yeah + " <<<");
- switch (yeah){
- case 2000:
- System.out.println("Your on legal age!!!");
- }
- //end
- }
- else if(tool.equals("4")){
- Infoo();
- }
- else if(tool.equals("/logout")||tool.equals("/reset")||tool.equals("/back")){
- break mloopp;
- }
- else{
- Divi();
- System.out.println(">>> You input wrong command <<<<");
- System.out.println("Just put the number of the tool you want");
- Divi();
- }
- }
- }
- public static void Infoo(){
- //Start of information
- Hi();
- System.out.println(" This Program Develop by :");
- System.out.println(" >>> Creamydark <<<<");
- System.out.println(">>> Inspired by LaLisa Manoban ♡ <<<");
- System.out.println(" >>> ♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡ <<<");
- System.out.println("''When you don't create things,"+"\nyou become defined by your tastes \n rather than ability''");
- //End
- Divi();
- }
- public static void main(String[] args) throws InterruptedException,IOException
- {
- String[] vipList={"vip","lalisa_m","cyrah","franchesca","hannah","blackpink"};
- String lisa[][]={{"You have 》》 ",
- " 《《 attempt/s left 《《" ,
- "Username:",
- "Password :" ,
- "You Successfully loged in ''" ,"You Should to be logged in fisrt ''"},
- {"Username or Password is invalid ''",
- "Please wait ",
- "Username not found ''",
- " 《《","> Note ''"+"\n> Type /register to Register an Account √ \n> Type /info for more information''`"}};
- List<String> userList=new ArrayList<>();
- List<String> passList=new ArrayList<>();
- Scanner hey =new Scanner(System.in);
- userList.add("creamydark");
- passList.add("hey");
- int attemps=3,cooldown=5;
- Divi();
- System.out.println(lisa[1][4]);
- Divi();
- loopMain:
- while(true){
- int clockk=6;
- System.out.println(lisa[0][5]);
- Divi();
- System.out.println(lisa[0][0]+(attemps)+lisa[0][1]);
- System.out.println(lisa[0][2]);
- System.out.print("》》 ");
- username=hey.nextLine();
- if(userList.contains(username)){
- Divi();
- System.out.println(lisa[0][3]);
- System.out.print("》》 ");
- String password=hey.nextLine();
- boolean lel=passList.contains(password);
- if(lel){
- Lalisa_m();
- }
- else{
- System.out.println(lisa[1][0]);
- Divi();
- }
- }
- else if(Arrays.asList(vipList).indexOf(username.toLowerCase())>=0){
- Divi();
- System.out.println("Nice'' you are using Special key 》》 " + username + " 《《");
- Lalisa_m();
- }
- else if(username.equals("/info")){
- Infoo();
- }
- else if(attemps==1){
- Divi();
- for(int a=0; a<cooldown;a++){
- Thread.sleep(1000);
- clockk--;
- attemps=3;
- System.out.println(lisa[1][1] +(clockk)+lisa[1][3]);
- }
- Divi();
- }
- else if(username.equals("/register")||username.equals("/reg")){
- rloop:
- while(true){
- Divi();
- System.out.println("If you want to go 'Back' ''Type /back or /login ");
- System.out.println("》》 No. "+userList.size()+" of Registered Account/s");
- System.out.println("Enter your decided username ''");
- System.out.print("》》 ");
- String rusername=hey.nextLine();
- boolean ruser=userList.contains(rusername);
- if(ruser){
- System.out.println("Username is already used'' "+"\nPlease Input a nee one'' ");
- Divi();
- }
- else if(rusername.equals("/back")||rusername.equals("/login")){
- break rloop;
- }
- else{
- Divi();
- System.out.println("Enter your decided password ''");
- System.out.print("》》 ");
- String rpassword=hey.nextLine();
- userList.add(rusername);
- passList.add(rpassword);
- Divi();
- System.out.println("Registered Successfully''");
- break rloop;
- }
- }
- }
- else{
- attemps--;
- System.out.println(lisa[1][2]);
- Divi();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement