Advertisement
Guest User

Untitled

a guest
May 7th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.79 KB | None | 0 0
  1.  
  2. /**
  3. * @Author Ozzyson
  4. **/
  5.  
  6. import java.util.Scanner;
  7. import java.util.Random;
  8. public class Main {
  9. @SuppressWarnings("resource")
  10. public static void main(String args[]) {
  11. String ANSI_RESET = "\u001B[0m";
  12. String ANSI_BLACK = "\u001B[30m";
  13. String ANSI_RED = "\u001B[31m";
  14. String ANSI_GREEN = "\u001B[32m";
  15. String ANSI_YELLOW = "\u001B[33m";
  16. String ANSI_BLUE = "\u001B[34m";
  17. String ANSI_PURPLE = "\u001B[35m";
  18. String ANSI_CYAN = "\u001B[36m";
  19. String ANSI_WHITE = "\u001B[37m";
  20. Scanner Scanner;
  21. Random Random;
  22. Random rand = new Random();
  23. Scanner = new Scanner(System.in);
  24. int i = 1;
  25. int c = 0;
  26. String[] $table = {"1", "2", "3"};
  27. int $x = rand.nextInt(3);
  28. boolean one = true;
  29. boolean two = false;
  30. if ((one != false) && (two != true)) {
  31. if (i == 1) {
  32. try {
  33. Thread.sleep(1000);
  34. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  35. Thread.sleep(4000);
  36. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter your Product Key.");
  37. Thread.sleep(1000);
  38. System.out.print(">"); String $PK = Scanner.next();
  39. if ($PK.equals("admin>skip>pass>123")) {
  40. if ((one != false) && (two != true)) {
  41. Start2();
  42. }
  43. }
  44. if ($PK.equals("78772777")) {
  45. if ((one != false) && (two != true)) {
  46. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
  47. Thread.sleep(4000);
  48. Start();
  49. }
  50. } else {
  51. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
  52. Thread.sleep(4000);
  53. System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] The Product Key you Entered is Invalid");
  54. Quit();
  55. }
  56. } catch (InterruptedException ex) {
  57. System.out.println(" ");
  58. }
  59. }
  60. }
  61. }
  62. public static void Start() {
  63. String ANSI_RESET = "\u001B[0m";
  64. String ANSI_BLACK = "\u001B[30m";
  65. String ANSI_RED = "\u001B[31m";
  66. String ANSI_GREEN = "\u001B[32m";
  67. String ANSI_YELLOW = "\u001B[33m";
  68. String ANSI_BLUE = "\u001B[34m";
  69. String ANSI_PURPLE = "\u001B[35m";
  70. String ANSI_CYAN = "\u001B[36m";
  71. String ANSI_WHITE = "\u001B[37m";
  72. Scanner Scanner;
  73. Scanner = new Scanner(System.in);
  74. boolean one = true;
  75. boolean two = false;
  76. int i = 1;
  77. if (i == 1) {
  78. try {
  79. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] The Product Key you Entered is Valid");
  80. Thread.sleep(1000);
  81. 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");
  82. Thread.sleep(1000);
  83. System.out.print(">"); String $return = Scanner.next();
  84. if ($return.equals("return")) {
  85. if ((one != false) && (two != true)) {
  86. Return();
  87. }
  88. } else {
  89. Thread.sleep(1000);
  90. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  91. Thread.sleep(4000);
  92. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Credentials Detected...");
  93. Thread.sleep(1000);
  94. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter Your Username");
  95. Thread.sleep(1000);
  96. }
  97. System.out.print("C:/>"); String $user = Scanner.next();
  98. if ($user.equals("admin")) {
  99. if ((one != false) && (two != true)) {
  100. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking Credentials...");
  101. Thread.sleep(4000);
  102. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter Your Password");
  103. Thread.sleep(1000);
  104. System.out.print("C:/>"); String $pass = Scanner.next();
  105. if ($pass.equals("admin")) {
  106. if ((one != false) && (two != true)) {
  107. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking Credentials...");
  108. Thread.sleep(4000);
  109. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Welcome back " + $user); // MAIN PAGE
  110. Thread.sleep(1000);
  111. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  112. Thread.sleep(4000);
  113. System.out.print("M");
  114. Thread.sleep(300);
  115. System.out.print("e");
  116. Thread.sleep(300);
  117. System.out.print("m");
  118. Thread.sleep(300);
  119. System.out.print("p");
  120. Thread.sleep(300);
  121. System.out.print("h");
  122. Thread.sleep(300);
  123. System.out.print("i");
  124. Thread.sleep(300);
  125. System.out.print("s");
  126. Thread.sleep(300);
  127. System.out.print(" ");
  128. Thread.sleep(300);
  129. System.out.print("D");
  130. Thread.sleep(300);
  131. System.out.print("O");
  132. Thread.sleep(300);
  133. System.out.print("S");
  134. Thread.sleep(300);
  135. System.out.print(" ");
  136. Thread.sleep(300);
  137. System.out.print("W");
  138. Thread.sleep(300);
  139. System.out.print("e");
  140. Thread.sleep(300);
  141. System.out.print("l");
  142. Thread.sleep(300);
  143. System.out.print("c");
  144. Thread.sleep(300);
  145. System.out.print("o");
  146. Thread.sleep(300);
  147. System.out.print("m");
  148. Thread.sleep(300);
  149. System.out.print("e");
  150. Thread.sleep(300);
  151. System.out.println("!");
  152. Thread.sleep(1000);
  153. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  154. Thread.sleep(4000);
  155. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Need Some Help? type help");
  156. Thread.sleep(1000);
  157. System.out.print("C:/>"); String $command = Scanner.next();
  158. if ($command.equals("write")) {
  159. if ((one != false) && (two != true)) {
  160. Write();
  161. }
  162. }
  163. if ($command.equals("color>green")) {
  164. if ((one != false) && (two != true)) {
  165. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_GREEN + "Green" + ANSI_RESET + "?");
  166. String $green = Scanner.next();
  167. System.out.println(ANSI_GREEN + $green + ANSI_RESET);
  168. Thread.sleep(1000);
  169. Start2();
  170. }
  171. }
  172. if ($command.equals("color>red")) {
  173. if ((one != false) && (two != true)) {
  174. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_RED + "Red" + ANSI_RESET + "?");
  175. String $red = Scanner.next();
  176. System.out.println(ANSI_RED + $red + ANSI_RESET);
  177. Thread.sleep(1000);
  178. Start2();
  179. }
  180. }
  181. if ($command.equals("reset")) {
  182. if ((one != false) && (two != true)) {
  183. Reset();
  184. }
  185. }
  186. if ($command.equals("HT")) {
  187. if ((one != false) && (two != true)) {
  188. HeadTail();
  189. }
  190. }
  191. if ($command.equals("calculator")) {
  192. if ((one != false) && (two != true)) {
  193. Calculator();
  194. }
  195. }
  196. if ($command.equals("about")) {
  197. if ((one != false) && (two != true)) {
  198. Thread.sleep(1000);
  199. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  200. Thread.sleep(4000);
  201. System.out.println("About Memphis DoS:");
  202. Thread.sleep(1000);
  203. 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.");
  204. Thread.sleep(1000);
  205. Start2();
  206. }
  207. }
  208. if ($command.equals("version")) {
  209. if ((one != false) && (two != true)) {
  210. Thread.sleep(1000);
  211. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Version...");
  212. Thread.sleep(4000);
  213. System.out.println("Memphis DoS 1");
  214. Thread.sleep(4000);
  215. Start2();
  216. }
  217. }
  218. if ($command.equals("help")) {
  219. if ((one != false) && (two != true)) {
  220. Help();
  221. }
  222. }
  223. if ($command.equals("clear")) {
  224. if ((one != false) && (two != true)) {
  225. Thread.sleep(1000);
  226. 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 + "]");
  227. String $yn = Scanner.next();
  228. if ($yn.equals("yes")) {
  229. if ((one != false) && (two != true)) {
  230. Thread.sleep(4000);
  231. System.out.println("");
  232. System.out.println(" ");
  233. System.out.println(" ");
  234. System.out.println(" ");
  235. System.out.println(" ");
  236. System.out.println("");
  237. System.out.println(" ");
  238. System.out.println(" ");
  239. System.out.println(" ");
  240. System.out.println(" ");
  241. System.out.println("");
  242. System.out.println(" ");
  243. System.out.println(" ");
  244. System.out.println(" ");
  245. System.out.println(" ");
  246. System.out.println("");
  247. System.out.println(" ");
  248. System.out.println(" ");
  249. System.out.println(" ");
  250. System.out.println(" ");
  251. System.out.println("");
  252. System.out.println(" ");
  253. System.out.println(" ");
  254. System.out.println(" ");
  255. System.out.println(" ");
  256. System.out.println("");
  257. System.out.println(" ");
  258. System.out.println(" ");
  259. System.out.println(" ");
  260. System.out.println(" ");
  261. System.out.println("");
  262. System.out.println(" ");
  263. System.out.println(" ");
  264. System.out.println(" ");
  265. System.out.println(" ");
  266. System.out.println("");
  267. System.out.println(" ");
  268. System.out.println(" ");
  269. System.out.println(" ");
  270. System.out.println(" ");
  271. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "BETA" + ANSI_RESET + "] Console has been Cleared");
  272. Thread.sleep(1000);
  273. Start2();
  274. }
  275. }
  276. if ($yn.equals("no")) {
  277. if ((one != false) && (two != true)) {
  278. Start2();
  279. }
  280. }
  281. } // end of this if statement
  282. }
  283. }
  284. } else {
  285. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking Credentials...");
  286. Thread.sleep(4000);
  287. System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] Invalid Password!");
  288. Quit();
  289. }
  290. }
  291. } else {
  292. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Checking Credentials...");
  293. Thread.sleep(4000);
  294. System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] Invalid Username!");
  295. Quit();
  296. }
  297. } catch (InterruptedException ex) {
  298. System.out.println(" ");
  299. }
  300. }
  301. } // end of Start Void
  302. public static void Return() {
  303. String ANSI_RESET = "\u001B[0m";
  304. String ANSI_BLACK = "\u001B[30m";
  305. String ANSI_RED = "\u001B[31m";
  306. String ANSI_GREEN = "\u001B[32m";
  307. String ANSI_YELLOW = "\u001B[33m";
  308. String ANSI_BLUE = "\u001B[34m";
  309. String ANSI_PURPLE = "\u001B[35m";
  310. String ANSI_CYAN = "\u001B[36m";
  311. String ANSI_WHITE = "\u001B[37m";
  312. Scanner Scanner;
  313. Random Random;
  314. Random rand = new Random();
  315. Scanner = new Scanner(System.in);
  316. int i = 1;
  317. int c = 0;
  318. String[] $table = {"1", "2", "3"};
  319. int $x = rand.nextInt(3);
  320. boolean one = true;
  321. boolean two = false;
  322. if ((one != false) && (two != true)) {
  323. if (i == 1) {
  324. try {
  325. Thread.sleep(1000);
  326. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  327. Thread.sleep(4000);
  328. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter your Product Key.");
  329. String $PK = Scanner.next();
  330. if ($PK.equals("78772777")) {
  331. if ((one != false) && (two != true)) {
  332. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
  333. Thread.sleep(4000);
  334. Start();
  335. }
  336. } else {
  337. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
  338. Thread.sleep(4000);
  339. System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] The Product Key you Entered is Invalid");
  340. }
  341. } catch (InterruptedException ex) {
  342. System.out.println(" ");
  343. }
  344. }
  345. }
  346. } // end of Return Void
  347. public static void Help() {
  348. String ANSI_RESET = "\u001B[0m";
  349. String ANSI_BLACK = "\u001B[30m";
  350. String ANSI_RED = "\u001B[31m";
  351. String ANSI_GREEN = "\u001B[32m";
  352. String ANSI_YELLOW = "\u001B[33m";
  353. String ANSI_BLUE = "\u001B[34m";
  354. String ANSI_PURPLE = "\u001B[35m";
  355. String ANSI_CYAN = "\u001B[36m";
  356. String ANSI_WHITE = "\u001B[37m";
  357. boolean one = true;
  358. boolean two = false;
  359. Scanner Scanner;
  360. Scanner = new Scanner(System.in);
  361. int i = 1;
  362. if (i == 1) {
  363. if ((one != false) && (two != true)) {
  364. try {
  365. Thread.sleep(1000);
  366. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  367. Thread.sleep(4000);
  368. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Welcome to the Help Menu. To Return, Please Type return");
  369. Thread.sleep(2000);
  370. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Showing Commands...");
  371. Thread.sleep(1000);
  372. System.out.println("- color>(color) >> lets you write text in color");
  373. System.out.println("- write >> Lets you write and create documents");
  374. Thread.sleep(200);
  375. System.out.println("- clear >> Clears the Console leaving the console blank");
  376. Thread.sleep(200);
  377. System.out.println("- version >> Shows the Current Version of This DoS Operating System");
  378. Thread.sleep(200);
  379. System.out.println("- about >> About Memphis DoS");
  380. Thread.sleep(200);
  381. System.out.println("- calculator >> Basic Calculator with a Friendly Interface");
  382. Thread.sleep(200);
  383. System.out.println("- HT >> Heads or Tails, Makes it Easy to Resolve Arguements");
  384. Thread.sleep(200);
  385. System.out.println("- reset >> Resets DoS");
  386. Thread.sleep(200);
  387. System.out.println(ANSI_RESET + "[" + ANSI_RED + "!" + ANSI_RESET + "] IMPORTANT! >> Please type return before typing a command");
  388. String $return = Scanner.next();
  389. if ($return.equals("return")) {
  390. if ((one != false) && (two != true)) {
  391. Start2();
  392. }
  393. }
  394. } catch (InterruptedException ex) {
  395. System.out.println(" ");
  396. }
  397. }
  398. }
  399. } // end of Help Void
  400. public static void Start2() {
  401. String ANSI_RESET = "\u001B[0m";
  402. String ANSI_BLACK = "\u001B[30m";
  403. String ANSI_RED = "\u001B[31m";
  404. String ANSI_GREEN = "\u001B[32m";
  405. String ANSI_YELLOW = "\u001B[33m";
  406. String ANSI_BLUE = "\u001B[34m";
  407. String ANSI_PURPLE = "\u001B[35m";
  408. String ANSI_CYAN = "\u001B[36m";
  409. String ANSI_WHITE = "\u001B[37m";
  410. Scanner Scanner;
  411. Scanner = new Scanner(System.in);
  412. int i = 1;
  413. boolean one = true;
  414. boolean two = false;
  415. if (i == 1) {
  416. if ((one != false) && (two != true)) {
  417. try {
  418. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  419. Thread.sleep(4000);
  420. System.out.print("M");
  421. Thread.sleep(300);
  422. System.out.print("e");
  423. Thread.sleep(300);
  424. System.out.print("m");
  425. Thread.sleep(300);
  426. System.out.print("p");
  427. Thread.sleep(300);
  428. System.out.print("h");
  429. Thread.sleep(300);
  430. System.out.print("i");
  431. Thread.sleep(300);
  432. System.out.print("s");
  433. Thread.sleep(300);
  434. System.out.print(" ");
  435. Thread.sleep(300);
  436. System.out.print("D");
  437. Thread.sleep(300);
  438. System.out.print("O");
  439. Thread.sleep(300);
  440. System.out.print("S");
  441. Thread.sleep(300);
  442. System.out.print(" ");
  443. Thread.sleep(300);
  444. System.out.print("W");
  445. Thread.sleep(300);
  446. System.out.print("e");
  447. Thread.sleep(300);
  448. System.out.print("l");
  449. Thread.sleep(300);
  450. System.out.print("c");
  451. Thread.sleep(300);
  452. System.out.print("o");
  453. Thread.sleep(300);
  454. System.out.print("m");
  455. Thread.sleep(300);
  456. System.out.print("e");
  457. Thread.sleep(300);
  458. System.out.println("!");
  459. Thread.sleep(1000);
  460. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  461. Thread.sleep(4000);
  462. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Need Some Help? type help");
  463. String $command = Scanner.next();
  464. if ($command.equals("write")) {
  465. if ((one != false) && (two != true)) {
  466. Write();
  467. }
  468. }
  469. if ($command.equals("color>green")) {
  470. if ((one != false) && (two != true)) {
  471. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_GREEN + "Green" + ANSI_RESET + "?");
  472. String $green = Scanner.next();
  473. System.out.println(ANSI_GREEN + $green + ANSI_RESET);
  474. Thread.sleep(1000);
  475. Start2();
  476. }
  477. }
  478. if ($command.equals("color>red")) {
  479. if ((one != false) && (two != true)) {
  480. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to color " + ANSI_RED + "Red" + ANSI_RESET + "?");
  481. String $red = Scanner.next();
  482. System.out.println(ANSI_RED + $red + ANSI_RESET);
  483. Thread.sleep(1000);
  484. Start2();
  485. }
  486. }
  487. if ($command.equals("reset")) {
  488. if ((one != false) && (two != true)) {
  489. Reset();
  490. }
  491. }
  492. if ($command.equals("HT")) {
  493. if ((one != false) && (two != true)) {
  494. HeadTail();
  495. }
  496. }
  497. if ($command.equals("calculator")) {
  498. if ((one != false) && (two != true)) {
  499. Calculator();
  500. }
  501. }
  502. if ($command.equals("about")) {
  503. if ((one != false) && (two != true)) {
  504. Thread.sleep(1000);
  505. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  506. Thread.sleep(4000);
  507. System.out.println("About Memphis DoS:");
  508. Thread.sleep(1000);
  509. 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.");
  510. Thread.sleep(1000);
  511. Start2();
  512. }
  513. }
  514. if ($command.equals("help")) {
  515. if ((one != false) && (two != true)) {
  516. Help();
  517. }
  518. }
  519. if ($command.equals("clear")) {
  520. if ((one != false) && (two != true)) {
  521. Thread.sleep(1000);
  522. 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 + "]");
  523. String $yn = Scanner.next();
  524. if ($yn.equals("yes")) {
  525. if ((one != false) && (two != true)) {
  526. Thread.sleep(4000);
  527. System.out.println("");
  528. System.out.println(" ");
  529. System.out.println(" ");
  530. System.out.println(" ");
  531. System.out.println(" ");
  532. System.out.println("");
  533. System.out.println(" ");
  534. System.out.println(" ");
  535. System.out.println(" ");
  536. System.out.println(" ");
  537. System.out.println("");
  538. System.out.println(" ");
  539. System.out.println(" ");
  540. System.out.println(" ");
  541. System.out.println(" ");
  542. System.out.println("");
  543. System.out.println(" ");
  544. System.out.println(" ");
  545. System.out.println(" ");
  546. System.out.println(" ");
  547. System.out.println("");
  548. System.out.println(" ");
  549. System.out.println(" ");
  550. System.out.println(" ");
  551. System.out.println(" ");
  552. System.out.println("");
  553. System.out.println(" ");
  554. System.out.println(" ");
  555. System.out.println(" ");
  556. System.out.println(" ");
  557. System.out.println("");
  558. System.out.println(" ");
  559. System.out.println(" ");
  560. System.out.println(" ");
  561. System.out.println(" ");
  562. System.out.println("");
  563. System.out.println(" ");
  564. System.out.println(" ");
  565. System.out.println(" ");
  566. System.out.println(" ");
  567. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "BETA" + ANSI_RESET + "] Console has been Cleared");
  568. Thread.sleep(1000);
  569. Start2();
  570. }
  571. }
  572. if ($yn.equals("no")) {
  573. if ((one != false) && (two != true)) {
  574. Start2();
  575. }
  576. }
  577. }
  578. } // end of this if statement
  579. if ($command.equals("version")) {
  580. if ((one != false) && (two != true)) {
  581. Thread.sleep(1000);
  582. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Version...");
  583. Thread.sleep(4000);
  584. System.out.println("Memphis DoS 1");
  585. Thread.sleep(4000);
  586. Start2();
  587. }
  588. }
  589. } catch (InterruptedException ex) {
  590. System.out.println(" ");
  591. }
  592. }
  593. }
  594. } // end of Start2 Void
  595. public static void Quit() {
  596. String ANSI_RESET = "\u001B[0m";
  597. String ANSI_BLACK = "\u001B[30m";
  598. String ANSI_RED = "\u001B[31m";
  599. String ANSI_GREEN = "\u001B[32m";
  600. String ANSI_YELLOW = "\u001B[33m";
  601. String ANSI_BLUE = "\u001B[34m";
  602. String ANSI_PURPLE = "\u001B[35m";
  603. String ANSI_CYAN = "\u001B[36m";
  604. String ANSI_WHITE = "\u001B[37m";
  605. int i = 1;
  606. boolean one = true;
  607. boolean two = false;
  608. if (i == 1) {
  609. if ((one != false) && (two != true)) {
  610. try {
  611. Thread.sleep(4000);
  612. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Shutting down...");
  613. Thread.sleep(4000);
  614. } catch (InterruptedException ex) {
  615. System.out.println(" ");
  616. }
  617. }
  618. }
  619. } // end of Quit Void
  620. public static void Calculator() {
  621. String ANSI_RESET = "\u001B[0m";
  622. String ANSI_BLACK = "\u001B[30m";
  623. String ANSI_RED = "\u001B[31m";
  624. String ANSI_GREEN = "\u001B[32m";
  625. String ANSI_YELLOW = "\u001B[33m";
  626. String ANSI_BLUE = "\u001B[34m";
  627. String ANSI_PURPLE = "\u001B[35m";
  628. String ANSI_CYAN = "\u001B[36m";
  629. String ANSI_WHITE = "\u001B[37m";
  630. Scanner Scanner;
  631. Scanner = new Scanner(System.in);
  632. boolean one = true;
  633. boolean two = false;
  634. int i = 1;
  635. if (i == 1) {
  636. if ((one != false) && (two != true)) {
  637. try {
  638. Thread.sleep(1000);
  639. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  640. Thread.sleep(4000);
  641. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your First Number");
  642. int $1n = Scanner.nextInt();
  643. Thread.sleep(1000);
  644. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your Second Number");
  645. int $2n = Scanner.nextInt();
  646. Thread.sleep(1000);
  647. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Choose the Form of Operation Excluding the Brackets. [+] [-] [*] [/]");
  648. String $op = Scanner.next();
  649. if ($op.equals("+")) {
  650. if ((one != false) && (two != true)) {
  651. Thread.sleep(1000);
  652. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  653. Thread.sleep(2500);
  654. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  655. System.out.println($1n + $2n);
  656. Thread.sleep(4000);
  657. 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 + "]");
  658. String $yn = Scanner.next();
  659. if ($yn.equals("yes")) {
  660. if ((one != false) && (two != true)) {
  661. Calculator2();
  662. }
  663. }
  664. if ($yn.equals("no")) {
  665. if ((one != false) && (two != true)) {
  666. Start2();
  667. }
  668. }
  669. }
  670. }
  671. if ($op.equals("-")) {
  672. if ((one != false) && (two != true)) {
  673. Thread.sleep(1000);
  674. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  675. Thread.sleep(2500);
  676. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  677. System.out.println($1n - $2n);
  678. Thread.sleep(4000);
  679. 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 + "]");
  680. String $yn = Scanner.next();
  681. if ($yn.equals("yes")) {
  682. if ((one != false) && (two != true)) {
  683. Calculator2();
  684. }
  685. }
  686. if ($yn.equals("no")) {
  687. if ((one != false) && (two != true)) {
  688. Start2();
  689. }
  690. }
  691. }
  692. }
  693. if ($op.equals("*")) {
  694. if ((one != false) && (two != true)) {
  695. Thread.sleep(1000);
  696. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  697. Thread.sleep(2500);
  698. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  699. System.out.println($1n * $2n);
  700. Thread.sleep(4000);
  701. 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 + "]");
  702. String $yn = Scanner.next();
  703. if ($yn.equals("yes")) {
  704. if ((one != false) && (two != true)) {
  705. Calculator2();
  706. }
  707. }
  708. if ($yn.equals("no")) {
  709. if ((one != false) && (two != true)) {
  710. Start2();
  711. }
  712. }
  713. }
  714. }
  715. if ($op.equals("/")) {
  716. if ((one != false) && (two != true)) {
  717. Thread.sleep(1000);
  718. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  719. Thread.sleep(2500);
  720. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  721. System.out.println($1n / $2n);
  722. Thread.sleep(4000);
  723. 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 + "]");
  724. String $yn = Scanner.next();
  725. if ($yn.equals("yes")) {
  726. if ((one != false) && (two != true)) {
  727. Calculator2();
  728. }
  729. }
  730. if ($yn.equals("no")) {
  731. if ((one != false) && (two != true)) {
  732. Start2();
  733. }
  734. }
  735. }
  736. }
  737. } catch (InterruptedException ex) {
  738. System.out.println(" ");
  739. }
  740. }
  741. }
  742. } // end of Calculator Void
  743. public static void HeadTail() {
  744. String ANSI_RESET = "\u001B[0m";
  745. String ANSI_BLACK = "\u001B[30m";
  746. String ANSI_RED = "\u001B[31m";
  747. String ANSI_GREEN = "\u001B[32m";
  748. String ANSI_YELLOW = "\u001B[33m";
  749. String ANSI_BLUE = "\u001B[34m";
  750. String ANSI_PURPLE = "\u001B[35m";
  751. String ANSI_CYAN = "\u001B[36m";
  752. String ANSI_WHITE = "\u001B[37m";
  753. Random Random;
  754. Scanner Scanner;
  755. Random rand = new Random();
  756. Scanner = new Scanner(System.in);
  757. boolean one = true;
  758. boolean two = false;
  759. String[] $table = {"Heads", "Tails"};
  760. int $x = rand.nextInt(2);
  761. int i = 1;
  762. if (i == 1) {
  763. if ((one != false) && (two != true)) {
  764. try {
  765. Thread.sleep(1000);
  766. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  767. Thread.sleep(4000);
  768. 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");
  769. String $yn = Scanner.next();
  770. if ($yn.equals("yes")) {
  771. if ((one != false) && (two != true)) {
  772. Thread.sleep(1000);
  773. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Flipping...");
  774. Thread.sleep(2500);
  775. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] " + $table[$x]);
  776. Thread.sleep(1000);
  777. 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");
  778. String $choice = Scanner.next();
  779. if ($choice.equals("yes")) {
  780. if ((one != false) && (two != true)) {
  781. HeadTail2();
  782. }
  783. }
  784. if ($choice.equals("no")) {
  785. if ((one != false) && (two != true)) {
  786. Thread.sleep(1000);
  787. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Quitting...");
  788. Thread.sleep(4000);
  789. Start2();
  790. }
  791. }
  792. }
  793. }
  794. if ($yn.equals("no")) {
  795. if ((one != false) && (two != true)) {
  796. Thread.sleep(1000);
  797. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Quitting...");
  798. Thread.sleep(4000);
  799. Start2();
  800. }
  801. }
  802. } catch (InterruptedException ex) {
  803. System.out.println(" ");
  804. }
  805. }
  806. }
  807. } // end of HeadTail Void
  808. public static void HeadTail2() {
  809. String ANSI_RESET = "\u001B[0m";
  810. String ANSI_BLACK = "\u001B[30m";
  811. String ANSI_RED = "\u001B[31m";
  812. String ANSI_GREEN = "\u001B[32m";
  813. String ANSI_YELLOW = "\u001B[33m";
  814. String ANSI_BLUE = "\u001B[34m";
  815. String ANSI_PURPLE = "\u001B[35m";
  816. String ANSI_CYAN = "\u001B[36m";
  817. String ANSI_WHITE = "\u001B[37m";
  818. Scanner Scanner;
  819. Random Random;
  820. Scanner = new Scanner(System.in);
  821. Random rand = new Random();
  822. boolean one = true;
  823. boolean two = false;
  824. int i = 1;
  825. String[] $table = {"Heads", "Tails"};
  826. int $x = rand.nextInt(2);
  827. if (i == 1) {
  828. if ((one != false) && (two != true)) {
  829. try {
  830. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Flipping...");
  831. Thread.sleep(2500);
  832. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] " + $table[$x]);
  833. Thread.sleep(1000);
  834. 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");
  835. String $choice = Scanner.next();
  836. if ($choice.equals("yes")) {
  837. if ((one != false) && (two != true)) {
  838. HeadTail2();
  839. }
  840. }
  841. if ($choice.equals("no")) {
  842. if ((one != false) && (two != true)) {
  843. Thread.sleep(1000);
  844. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "HT" + ANSI_RESET + "] Quitting...");
  845. Thread.sleep(4000);
  846. Start2();
  847. }
  848. }
  849. } catch (InterruptedException ex) {
  850. System.out.println(" ");
  851. }
  852. }
  853. }
  854. } // end of HeadTail2 Void
  855. public static void Convert() {
  856. String ANSI_RESET = "\u001B[0m";
  857. String ANSI_BLACK = "\u001B[30m";
  858. String ANSI_RED = "\u001B[31m";
  859. String ANSI_GREEN = "\u001B[32m";
  860. String ANSI_YELLOW = "\u001B[33m";
  861. String ANSI_BLUE = "\u001B[34m";
  862. String ANSI_PURPLE = "\u001B[35m";
  863. String ANSI_CYAN = "\u001B[36m";
  864. String ANSI_WHITE = "\u001B[37m";
  865. Scanner Scanner;
  866. Scanner = new Scanner(System.in);
  867. int i = 1;
  868. boolean one = true;
  869. boolean two = false;
  870. if (i == 1) {
  871. if ((one != false) && (two != true)) {
  872. try {
  873. Thread.sleep(1000);
  874. System.out.println("[✓] Loading Assets...");
  875. Thread.sleep(4000);
  876. } catch (InterruptedException ex) {
  877. System.out.println(" ");
  878. }
  879. }
  880. }
  881. } // end of Convert Void
  882. public static void Reset() {
  883. String ANSI_RESET = "\u001B[0m";
  884. String ANSI_BLACK = "\u001B[30m";
  885. String ANSI_RED = "\u001B[31m";
  886. String ANSI_GREEN = "\u001B[32m";
  887. String ANSI_YELLOW = "\u001B[33m";
  888. String ANSI_BLUE = "\u001B[34m";
  889. String ANSI_PURPLE = "\u001B[35m";
  890. String ANSI_CYAN = "\u001B[36m";
  891. String ANSI_WHITE = "\u001B[37m";
  892. Scanner Scanner;
  893. Scanner = new Scanner(System.in);
  894. int i = 1;
  895. boolean one = true;
  896. boolean two = false;
  897. if (i == 1) {
  898. if ((one != false) && (two != true)) {
  899. try {
  900. Thread.sleep(1000);
  901. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  902. Thread.sleep(4000);
  903. 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");
  904. String $choice = Scanner.next();
  905. if ($choice.equals("yes")) {
  906. if ((one != false) && (two != true)) {
  907. Thread.sleep(1000);
  908. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Restarting...");
  909. Thread.sleep(7000);
  910. Main2();
  911. }
  912. }
  913. if ($choice.equals("no")) {
  914. if ((one != false) && (two != true)) {
  915. Thread.sleep(1000);
  916. Start2();
  917. }
  918. }
  919. } catch (InterruptedException ex) {
  920. System.out.println(" ");
  921. } finally {
  922. // Possible Handle Errors
  923. }
  924. }
  925. }
  926. } // end of Reset Void
  927. public static void Main2() {
  928. String ANSI_RESET = "\u001B[0m";
  929. String ANSI_BLACK = "\u001B[30m";
  930. String ANSI_RED = "\u001B[31m";
  931. String ANSI_GREEN = "\u001B[32m";
  932. String ANSI_YELLOW = "\u001B[33m";
  933. String ANSI_BLUE = "\u001B[34m";
  934. String ANSI_PURPLE = "\u001B[35m";
  935. String ANSI_CYAN = "\u001B[36m";
  936. String ANSI_WHITE = "\u001B[37m";
  937. Scanner Scanner;
  938. Random Random;
  939. Random rand = new Random();
  940. Scanner = new Scanner(System.in);
  941. int i = 1;
  942. int c = 0;
  943. String[] $table = {"1", "2", "3"};
  944. int $x = rand.nextInt(3);
  945. boolean one = true;
  946. boolean two = false;
  947. if ((one != false) && (two != true)) {
  948. if (i == 1) {
  949. try {
  950. Thread.sleep(1000);
  951. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  952. Thread.sleep(4000);
  953. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Please Enter your Product Key.");
  954. String $PK = Scanner.next();
  955. if ($PK.equals("78772777")) {
  956. if ((one != false) && (two != true)) {
  957. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
  958. Thread.sleep(4000);
  959. Start();
  960. }
  961. } else {
  962. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] Checking your Product Key...");
  963. Thread.sleep(4000);
  964. System.out.println(ANSI_RESET + "[" + ANSI_RED + "✗" + ANSI_RESET + "] The Product Key you Entered is Invalid");
  965. Quit();
  966. }
  967. } catch (InterruptedException ex) {
  968. System.out.println(" ");
  969. }
  970. }
  971. }
  972. } // end of Main2 Void
  973. public static void Write() {
  974. String ANSI_RESET = "\u001B[0m";
  975. String ANSI_BLACK = "\u001B[30m";
  976. String ANSI_RED = "\u001B[31m";
  977. String ANSI_GREEN = "\u001B[32m";
  978. String ANSI_YELLOW = "\u001B[33m";
  979. String ANSI_BLUE = "\u001B[34m";
  980. String ANSI_PURPLE = "\u001B[35m";
  981. String ANSI_CYAN = "\u001B[36m";
  982. String ANSI_WHITE = "\u001B[37m";
  983. Scanner Scanner;
  984. Scanner = new Scanner(System.in);
  985. int i = 1;
  986. boolean one = true;
  987. boolean two = false;
  988. if (i == 1) {
  989. if ((one != false) && (two != true)) {
  990. try {
  991. Thread.sleep(1000);
  992. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  993. Thread.sleep(4000);
  994. 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 + "]");
  995. String $choice = Scanner.next();
  996. if ($choice.equals("yes")) {
  997. if ((one != false) && (two != true)) {
  998. Thread.sleep(1000);
  999. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to name your document?");
  1000. String $name = Scanner.next();
  1001. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Creating your document '" + $name + "'...");
  1002. Thread.sleep(4000);
  1003. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] You can now start typing your document");
  1004. Thread.sleep(1000);
  1005. 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");
  1006. String $doc = Scanner.next();
  1007. String $com = Scanner.next();
  1008. if ($com.equals("load")) {
  1009. if ((one != false) && (two != true)) {
  1010. Write2($doc, $name);
  1011. }
  1012. }
  1013. if ($com.equals("menu")) {
  1014. if ((one != false) && (two != true)) {
  1015. Write3($doc, $name);
  1016. }
  1017. }
  1018. }
  1019. }
  1020. if ($choice.equals("no")) {
  1021. if ((one != false) && (two != true)) {
  1022. Thread.sleep(1000);
  1023. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Returning...");
  1024. Thread.sleep(4000);
  1025. Start2();
  1026. }
  1027. }
  1028. } catch (InterruptedException ex) {
  1029. System.out.println(" ");
  1030. } finally {
  1031.  
  1032. }
  1033. }
  1034. }
  1035. } // end of Write void
  1036. public static void Bot() {
  1037. String ANSI_RESET = "\u001B[0m";
  1038. String ANSI_BLACK = "\u001B[30m";
  1039. String ANSI_RED = "\u001B[31m";
  1040. String ANSI_GREEN = "\u001B[32m";
  1041. String ANSI_YELLOW = "\u001B[33m";
  1042. String ANSI_BLUE = "\u001B[34m";
  1043. String ANSI_PURPLE = "\u001B[35m";
  1044. String ANSI_CYAN = "\u001B[36m";
  1045. String ANSI_WHITE = "\u001B[37m";
  1046. Scanner Scanner;
  1047. Scanner = new Scanner(System.in);
  1048. int i = 1;
  1049. boolean one = true;
  1050. boolean two = false;
  1051. if (i == 1) {
  1052. if ((one != false) && (two != true)) {
  1053. try {
  1054. Thread.sleep(1000);
  1055. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  1056. Thread.sleep(4000);
  1057. 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!");
  1058. Thread.sleep(1000);
  1059. String $command = Scanner.next();
  1060. } catch (InterruptedException ex) {
  1061. System.out.println();
  1062. } finally {
  1063.  
  1064. }
  1065. }
  1066. }
  1067. }
  1068. public static void Calculator2() {
  1069. String ANSI_RESET = "\u001B[0m";
  1070. String ANSI_BLACK = "\u001B[30m";
  1071. String ANSI_RED = "\u001B[31m";
  1072. String ANSI_GREEN = "\u001B[32m";
  1073. String ANSI_YELLOW = "\u001B[33m";
  1074. String ANSI_BLUE = "\u001B[34m";
  1075. String ANSI_PURPLE = "\u001B[35m";
  1076. String ANSI_CYAN = "\u001B[36m";
  1077. String ANSI_WHITE = "\u001B[37m";
  1078. Scanner Scanner;
  1079. Scanner = new Scanner(System.in);
  1080. boolean one = true;
  1081. boolean two = false;
  1082. int i = 1;
  1083. if (i == 1) {
  1084. if ((one != false) && (two != true)) {
  1085. try {
  1086. Thread.sleep(1000);
  1087. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your First Number");
  1088. int $1n = Scanner.nextInt();
  1089. Thread.sleep(1000);
  1090. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Enter your Second Number");
  1091. int $2n = Scanner.nextInt();
  1092. Thread.sleep(1000);
  1093. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Please Choose the Form of Operation Excluding the Brackets. [+] [-] [*] [/]");
  1094. String $op = Scanner.next();
  1095. if ($op.equals("+")) {
  1096. if ((one != false) && (two != true)) {
  1097. Thread.sleep(1000);
  1098. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  1099. Thread.sleep(2500);
  1100. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  1101. System.out.println($1n + $2n);
  1102. Thread.sleep(4000);
  1103. 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 + "]");
  1104. String $yn = Scanner.next();
  1105. if ($yn.equals("yes")) {
  1106. if ((one != false) && (two != true)) {
  1107. Calculator2();
  1108. }
  1109. }
  1110. if ($yn.equals("no")) {
  1111. if ((one != false) && (two != true)) {
  1112. Start2();
  1113. }
  1114. }
  1115. }
  1116. }
  1117. if ($op.equals("-")) {
  1118. if ((one != false) && (two != true)) {
  1119. Thread.sleep(1000);
  1120. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  1121. Thread.sleep(2500);
  1122. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  1123. System.out.println($1n - $2n);
  1124. Thread.sleep(4000);
  1125. 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 + "]");
  1126. String $yn = Scanner.next();
  1127. if ($yn.equals("yes")) {
  1128. if ((one != false) && (two != true)) {
  1129. Calculator2();
  1130. }
  1131. }
  1132. if ($yn.equals("no")) {
  1133. if ((one != false) && (two != true)) {
  1134. Start2();
  1135. }
  1136. }
  1137. }
  1138. }
  1139. if ($op.equals("*")) {
  1140. if ((one != false) && (two != true)) {
  1141. Thread.sleep(1000);
  1142. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  1143. Thread.sleep(2500);
  1144. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  1145. System.out.println($1n * $2n);
  1146. Thread.sleep(4000);
  1147. 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 + "]");
  1148. String $yn = Scanner.next();
  1149. if ($yn.equals("yes")) {
  1150. if ((one != false) && (two != true)) {
  1151. Calculator2();
  1152. }
  1153. }
  1154. if ($yn.equals("no")) {
  1155. if ((one != false) && (two != true)) {
  1156. Start2();
  1157. }
  1158. }
  1159. }
  1160. }
  1161. if ($op.equals("/")) {
  1162. if ((one != false) && (two != true)) {
  1163. Thread.sleep(1000);
  1164. System.out.println(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] Calculating...");
  1165. Thread.sleep(2500);
  1166. System.out.print(ANSI_RESET + "[" + ANSI_PURPLE + "CALC" + ANSI_RESET + "] ");
  1167. System.out.println($1n / $2n);
  1168. Thread.sleep(4000);
  1169. 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 + "]");
  1170. String $yn = Scanner.next();
  1171. if ($yn.equals("yes")) {
  1172. if ((one != false) && (two != true)) {
  1173. Calculator2();
  1174. }
  1175. }
  1176. if ($yn.equals("no")) {
  1177. if ((one != false) && (two != true)) {
  1178. Start2();
  1179. }
  1180. }
  1181. }
  1182. }
  1183. } catch (InterruptedException ex) {
  1184. System.out.println(" ");
  1185. }
  1186. }
  1187. }
  1188. }
  1189. public static void Write2(String $doc, String $name) {
  1190. String ANSI_RESET = "\u001B[0m";
  1191. String ANSI_BLACK = "\u001B[30m";
  1192. String ANSI_RED = "\u001B[31m";
  1193. String ANSI_GREEN = "\u001B[32m";
  1194. String ANSI_YELLOW = "\u001B[33m";
  1195. String ANSI_BLUE = "\u001B[34m";
  1196. String ANSI_PURPLE = "\u001B[35m";
  1197. String ANSI_CYAN = "\u001B[36m";
  1198. String ANSI_WHITE = "\u001B[37m";
  1199. Scanner Scanner;
  1200. Scanner = new Scanner(System.in);
  1201. int i = 1;
  1202. boolean one = true;
  1203. boolean two = false;
  1204. if (i == 1) {
  1205. if ((one != false) && (two != true)) {
  1206. try {
  1207. Thread.sleep(1000);
  1208. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading your document: " + $name + "...");
  1209. Thread.sleep(4000);
  1210. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Successfully loaded document: " + $name + ": " + $doc);
  1211. Thread.sleep(1000);
  1212. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] To return to the menu, please type '" + ANSI_GREEN + "menu" + ANSI_RESET + "'");
  1213. String $choice = Scanner.next();
  1214. if ($choice.equals("menu")) {
  1215. if ((one != false) && (two != true)) {
  1216. Write();
  1217. }
  1218. }
  1219. } catch (InterruptedException ex) {
  1220. System.out.println("");
  1221. } finally {
  1222.  
  1223. }
  1224. }
  1225. }
  1226. }
  1227. public static void Write3(String $doc, String $name) {
  1228. String ANSI_RESET = "\u001B[0m";
  1229. String ANSI_BLACK = "\u001B[30m";
  1230. String ANSI_RED = "\u001B[31m";
  1231. String ANSI_GREEN = "\u001B[32m";
  1232. String ANSI_YELLOW = "\u001B[33m";
  1233. String ANSI_BLUE = "\u001B[34m";
  1234. String ANSI_PURPLE = "\u001B[35m";
  1235. String ANSI_CYAN = "\u001B[36m";
  1236. String ANSI_WHITE = "\u001B[37m";
  1237. Scanner Scanner;
  1238. Scanner = new Scanner(System.in);
  1239. int i = 1;
  1240. boolean one = true;
  1241. boolean two = false;
  1242. if (i == 1) {
  1243. if ((one != false) && (two != true)) {
  1244. try {
  1245. Thread.sleep(1000);
  1246. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Loading Assets...");
  1247. Thread.sleep(4000);
  1248. 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);
  1249. Thread.sleep(1000);
  1250. 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 + "]");
  1251. String $choice = Scanner.next();
  1252. if ($choice.equals("load")) {
  1253. if ((one != false) && (two != true)) {
  1254. Write2($doc, $name);
  1255. }
  1256. }
  1257. if ($choice.equals("yes")) {
  1258. if ((one != false) && (two != true)) {
  1259. Thread.sleep(1000);
  1260. System.out.println(ANSI_RESET + "[" + ANSI_CYAN + "?" + ANSI_RESET + "] What would you like to name your document?");
  1261. String $name2 = Scanner.next();
  1262. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Creating your document '" + $name2 + "'...");
  1263. Thread.sleep(4000);
  1264. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] You can now start typing your document");
  1265. Thread.sleep(1000);
  1266. 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");
  1267. String $doc2 = Scanner.next();
  1268. String $com = Scanner.next();
  1269. if ($com.equals("load")) {
  1270. if ((one != false) && (two != true)) {
  1271. Write2($doc, $name);
  1272. }
  1273. }
  1274. if ($com.equals("menu")) {
  1275. if ((one != false) && (two != true)) {
  1276. Write3($doc, $name);
  1277. }
  1278. }
  1279. }
  1280. }
  1281. if ($choice.equals("no")) {
  1282. if ((one != false) && (two != true)) {
  1283. Thread.sleep(1000);
  1284. System.out.println(ANSI_RESET + "[" + ANSI_GREEN + "✓" + ANSI_RESET + "] Returning...");
  1285. Thread.sleep(4000);
  1286. Start2();
  1287. }
  1288. }
  1289. } catch (InterruptedException ex) {
  1290. System.out.println(" ");
  1291. } finally {
  1292.  
  1293. }
  1294. }
  1295. }
  1296. }
  1297. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement