Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @Author Ozzyson
- **/
- import java.util.Scanner;
- import java.util.Random;
- public class Main {
- @SuppressWarnings("resource")
- public static void main(String args[]) {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Random Random;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- int i = 1;
- int c = 0;
- String[] $table = {"1", "2", "3"};
- int $x = rand.nextInt(3);
- boolean one = true;
- boolean two = false;
- if ((one != false) && (two != true)) {
- if (i == 1) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter your Product Key.");
- Thread.sleep(1000);
- System.out.print(">"); String $PK = Scanner.next();
- if ($PK.equals("admin>skip>pass>123")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- if ($PK.equals("78772777")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
- Thread.sleep(4000);
- Start();
- }
- } else {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] The Product Key you Entered is Invalid");
- Quit();
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- }
- public static void Start() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- int i = 1;
- if (i == 1) {
- try {
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] The Product Key you Entered is Valid");
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Was this not your Product key? if Not, Please type return, if this is your Product key, Please Type continue");
- Thread.sleep(1000);
- System.out.print(">"); String $return = Scanner.next();
- if ($return.equals("return")) {
- if ((one != false) && (two != true)) {
- Return();
- }
- } else {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Credentials Detected...");
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter Your Username");
- Thread.sleep(1000);
- }
- System.out.print("C:/>"); String $user = Scanner.next();
- if ($user.equals("admin")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter Your Password");
- Thread.sleep(1000);
- System.out.print("C:/>"); String $pass = Scanner.next();
- if ($pass.equals("admin")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Welcome back " + $user); // MAIN PAGE
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.print("M");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.print("m");
- Thread.sleep(300);
- System.out.print("p");
- Thread.sleep(300);
- System.out.print("h");
- Thread.sleep(300);
- System.out.print("i");
- Thread.sleep(300);
- System.out.print("s");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("D");
- Thread.sleep(300);
- System.out.print("O");
- Thread.sleep(300);
- System.out.print("S");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("W");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.print("l");
- Thread.sleep(300);
- System.out.print("c");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("m");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.println("!");
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Need Some Help? type help");
- Thread.sleep(1000);
- System.out.print("C:/>"); String $command = Scanner.next();
- if ($command.equals("write")) {
- if ((one != false) && (two != true)) {
- Write();
- }
- }
- if ($command.equals("color>green")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_GREEN + "Green" + ANSI_RESET + "?");
- String $green = Scanner.next();
- System.out.println(ANSI_GREEN + $green + ANSI_RESET);
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("color>red")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_RED + "Red" + ANSI_RESET + "?");
- String $red = Scanner.next();
- System.out.println(ANSI_RED + $red + ANSI_RESET);
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("reset")) {
- if ((one != false) && (two != true)) {
- Reset();
- }
- }
- if ($command.equals("HT")) {
- if ((one != false) && (two != true)) {
- HeadTail();
- }
- }
- if ($command.equals("calculator")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($command.equals("about")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("About Memphis DoS:");
- Thread.sleep(1000);
- System.out.println("Memphis DoS was Created by Zoovy in an attempt to make it easier for users to Understand DoS, with a User Friendly Interface.");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("version")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Version...");
- Thread.sleep(4000);
- System.out.println("Memphis DoS 1");
- Thread.sleep(4000);
- Start2();
- }
- }
- if ($command.equals("help")) {
- if ((one != false) && (two != true)) {
- Help();
- }
- }
- if ($command.equals("clear")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] Warning! You are about to clear Console, would you still like to proceed? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(4000);
- 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(" ");
- 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(" ");
- 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(" ");
- 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(" ");
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "BETA" + ANSI_RESET + "] Console has been Cleared");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- } // end of this if statement
- }
- }
- } else {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] Invalid Password!");
- Quit();
- }
- }
- } else {
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] Invalid Username!");
- Quit();
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- } // end of Start Void
- public static void Return() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Random Random;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- int i = 1;
- int c = 0;
- String[] $table = {"1", "2", "3"};
- int $x = rand.nextInt(3);
- boolean one = true;
- boolean two = false;
- if ((one != false) && (two != true)) {
- if (i == 1) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter your Product Key.");
- String $PK = Scanner.next();
- if ($PK.equals("78772777")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
- Thread.sleep(4000);
- Start();
- }
- } else {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] The Product Key you Entered is Invalid");
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Return Void
- public static void Help() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- boolean one = true;
- boolean two = false;
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Welcome to the Help Menu. To Return, Please Type return");
- Thread.sleep(2000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Showing Commands...");
- Thread.sleep(1000);
- System.out.println("- color>(color) >> lets you write text in color");
- System.out.println("- write >> Lets you write and create documents");
- Thread.sleep(200);
- System.out.println("- clear >> Clears the Console leaving the console blank");
- Thread.sleep(200);
- System.out.println("- version >> Shows the Current Version of This DoS Operating System");
- Thread.sleep(200);
- System.out.println("- about >> About Memphis DoS");
- Thread.sleep(200);
- System.out.println("- calculator >> Basic Calculator with a Friendly Interface");
- Thread.sleep(200);
- System.out.println("- HT >> Heads or Tails, Makes it Easy to Resolve Arguements");
- Thread.sleep(200);
- System.out.println("- reset >> Resets DoS");
- Thread.sleep(200);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] IMPORTANT! >> Please type return before typing a command");
- String $return = Scanner.next();
- if ($return.equals("return")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Help Void
- public static void Start2() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.print("M");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.print("m");
- Thread.sleep(300);
- System.out.print("p");
- Thread.sleep(300);
- System.out.print("h");
- Thread.sleep(300);
- System.out.print("i");
- Thread.sleep(300);
- System.out.print("s");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("D");
- Thread.sleep(300);
- System.out.print("O");
- Thread.sleep(300);
- System.out.print("S");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("W");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.print("l");
- Thread.sleep(300);
- System.out.print("c");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("m");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.println("!");
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Need Some Help? type help");
- String $command = Scanner.next();
- if ($command.equals("write")) {
- if ((one != false) && (two != true)) {
- Write();
- }
- }
- if ($command.equals("color>green")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_GREEN + "Green" + ANSI_RESET + "?");
- String $green = Scanner.next();
- System.out.println(ANSI_GREEN + $green + ANSI_RESET);
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("color>red")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_RED + "Red" + ANSI_RESET + "?");
- String $red = Scanner.next();
- System.out.println(ANSI_RED + $red + ANSI_RESET);
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("reset")) {
- if ((one != false) && (two != true)) {
- Reset();
- }
- }
- if ($command.equals("HT")) {
- if ((one != false) && (two != true)) {
- HeadTail();
- }
- }
- if ($command.equals("calculator")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($command.equals("about")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("About Memphis DoS:");
- Thread.sleep(1000);
- System.out.println("Memphis DoS was Created by Zoovy in an attempt to make it easier for users to Understand DoS, with a User Friendly Interface.");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("help")) {
- if ((one != false) && (two != true)) {
- Help();
- }
- }
- if ($command.equals("clear")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] Warning! You are about to clear console, would you still like to proceed? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(4000);
- 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(" ");
- 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(" ");
- 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(" ");
- 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(" ");
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "BETA" + ANSI_RESET + "] Console has been Cleared");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- } // end of this if statement
- if ($command.equals("version")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Version...");
- Thread.sleep(4000);
- System.out.println("Memphis DoS 1");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Start2 Void
- public static void Quit() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Shutting down...");
- Thread.sleep(4000);
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Quit Void
- public static void Calculator() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your First Number");
- int $1n = Scanner.nextInt();
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your Second Number");
- int $2n = Scanner.nextInt();
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Choose the Form of Operation Excluding the Brackets. [+] [-] [*] [/]");
- String $op = Scanner.next();
- if ($op.equals("+")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n + $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("-")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n - $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("*")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n * $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("/")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n / $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Calculator Void
- public static void HeadTail() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Random Random;
- Scanner Scanner;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- String[] $table = {"Heads", "Tails"};
- int $x = rand.nextInt(2);
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Heads or Tails? Want to Flip a Coin? [" + ANSI_GREEN + "Yes" + ANSI_RESET + "] [" + ANSI_RED + "No" + ANSI_RESET + "] Excluding Brackets");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Flipping...");
- Thread.sleep(2500);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] " + $table[$x]);
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Would you like to flip another coin? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "] Excluding Brackets");
- String $choice = Scanner.next();
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- HeadTail2();
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Quitting...");
- Thread.sleep(4000);
- Start2();
- }
- }
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Quitting...");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of HeadTail Void
- public static void HeadTail2() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Random Random;
- Scanner = new Scanner(System.in);
- Random rand = new Random();
- boolean one = true;
- boolean two = false;
- int i = 1;
- String[] $table = {"Heads", "Tails"};
- int $x = rand.nextInt(2);
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Flipping...");
- Thread.sleep(2500);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] " + $table[$x]);
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Would you like to flip another coin? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "] Excluding Brackets");
- String $choice = Scanner.next();
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- HeadTail2();
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Quitting...");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of HeadTail2 Void
- public static void Convert() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Convert Void
- public static void Reset() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] WARNING! You are about to loose all of your Data! Would you still like to Continue? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "] Excluding Brackets");
- String $choice = Scanner.next();
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Restarting...");
- Thread.sleep(7000);
- Main2();
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- } finally {
- // Possible Handle Errors
- }
- }
- }
- } // end of Reset Void
- public static void Main2() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Random Random;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- int i = 1;
- int c = 0;
- String[] $table = {"1", "2", "3"};
- int $x = rand.nextInt(3);
- boolean one = true;
- boolean two = false;
- if ((one != false) && (two != true)) {
- if (i == 1) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter your Product Key.");
- String $PK = Scanner.next();
- if ($PK.equals("78772777")) {
- if ((one != false) && (two != true)) {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
- Thread.sleep(4000);
- Start();
- }
- } else {
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] The Product Key you Entered is Invalid");
- Quit();
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Main2 Void
- public static void Write() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Would you like to create a document? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $choice = Scanner.next();
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to name your document?");
- String $name = Scanner.next();
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Creating your document '" + $name + "'...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] You can now start typing your document");
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] When your done typing, press Enter, then type '" + ANSI_GREEN + "menu" + ANSI_RESET + "' to return to the menu. or type '" + ANSI_GREEN + "load" + ANSI_RESET + "' to load your document");
- String $doc = Scanner.next();
- String $com = Scanner.next();
- if ($com.equals("load")) {
- if ((one != false) && (two != true)) {
- Write2($doc, $name);
- }
- }
- if ($com.equals("menu")) {
- if ((one != false) && (two != true)) {
- Write3($doc, $name);
- }
- }
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Returning...");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- } finally {
- }
- }
- }
- } // end of Write void
- public static void Bot() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "BOT" + ANSI_RESET + "] Hello! Im MIA, im from the Memory Intelligence Agency (MIA) type help for a list of what you can ask me! or, take a shot at anything!");
- Thread.sleep(1000);
- String $command = Scanner.next();
- } catch (InterruptedException ex) {
- System.out.println();
- } finally {
- }
- }
- }
- }
- public static void Calculator2() {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your First Number");
- int $1n = Scanner.nextInt();
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your Second Number");
- int $2n = Scanner.nextInt();
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Choose the Form of Operation Excluding the Brackets. [+] [-] [*] [/]");
- String $op = Scanner.next();
- if ($op.equals("+")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n + $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("-")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n - $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("*")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n * $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("/")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
- Thread.sleep(2500);
- System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
- System.out.println($1n / $2n);
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Would you like to make another Calculation? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- }
- public static void Write2(String $doc, String $name) {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading your document: " + $name + "...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Successfully loaded document: " + $name + ": " + $doc);
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] To return to the menu, please type '" + ANSI_GREEN + "menu" + ANSI_RESET + "'");
- String $choice = Scanner.next();
- if ($choice.equals("menu")) {
- if ((one != false) && (two != true)) {
- Write();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println("");
- } finally {
- }
- }
- }
- }
- public static void Write3(String $doc, String $name) {
- String ANSI_RESET = "\u001B[0m";
- String ANSI_BLACK = "\u001B[30m";
- String ANSI_RED = "\u001B[31m";
- String ANSI_GREEN = "\u001B[32m";
- String ANSI_YELLOW = "\u001B[33m";
- String ANSI_BLUE = "\u001B[34m";
- String ANSI_PURPLE = "\u001B[35m";
- String ANSI_CYAN = "\u001B[36m";
- String ANSI_WHITE = "\u001B[37m";
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] Attention! you have one document created, would you like to load it? type '" + ANSI_GREEN + "load" + ANSI_RESET + "' to load this document: " + $name);
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Would you like to create a document? [" + ANSI_GREEN + "yes" + ANSI_RESET + "] [" + ANSI_RED + "no" + ANSI_RESET + "]");
- String $choice = Scanner.next();
- if ($choice.equals("load")) {
- if ((one != false) && (two != true)) {
- Write2($doc, $name);
- }
- }
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to name your document?");
- String $name2 = Scanner.next();
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Creating your document '" + $name2 + "'...");
- Thread.sleep(4000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] You can now start typing your document");
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] When your done typing, press Enter, then type '" + ANSI_GREEN + "menu" + ANSI_RESET + "' to return to the menu. or type '" + ANSI_GREEN + "load" + ANSI_RESET + "' to load your document");
- String $doc2 = Scanner.next();
- String $com = Scanner.next();
- if ($com.equals("load")) {
- if ((one != false) && (two != true)) {
- Write2($doc, $name);
- }
- }
- if ($com.equals("menu")) {
- if ((one != false) && (two != true)) {
- Write3($doc, $name);
- }
- }
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Returning...");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- } finally {
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement