Marcluis1187

Needheloguys

Feb 13th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. public static String username;
  2. public static void Divi(){
  3. for(int x=0; x<150; x++){
  4. System.out.print("=");
  5. }
  6. System.out.println();
  7. }
  8.  
  9. public static void Hi(){
  10. System.out.println();
  11. System.out.println(" _ _ _________ _ ");
  12. System.out.println(" | | | | |___ ___| | |");
  13. System.out.println(" | | | | | | | |");
  14. System.out.println(" | |_____| | | | | |");
  15. System.out.println(" | _____ | | | | |");
  16. System.out.println(" | | | | | | |_|");
  17. System.out.println(" | | | | ___| |___ _ ");
  18. System.out.println(" |_| |_| |_________| |_|");
  19. System.out.println();
  20. }
  21. public static void Lalisa_m(){
  22. // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  23. // Scanner pota3 = new Scanner(System.in);
  24. Divi();
  25. System.out.println("Note :\n" + "This Program cant it back" +
  26. "\nJust Relaunch this Program to reset"+"\nType '/logout ' To logout ''");
  27. Divi();
  28. /* System.out.println("What's your name???");
  29. String name = pota3.nextLine();*/
  30. String s1 = username.substring(0, 1).toUpperCase();
  31. String nameCapitalized = s1 + username.substring(1);
  32. //String name =pota3.nextLine();
  33. mloopp:
  34. while(true){
  35. Scanner pota1= new Scanner(System.in);
  36. System.out.println("Hi "+ nameCapitalized + "''");
  37. System.out.println("Choose Your Tools :");
  38. System.out.println("1. CalCulous" + "\n2. Getting the area of Circle" + "\n3. Getting Your Birthyear"
  39. + "\n4. Info");
  40. System.out.print("》》 ");
  41. String tool =pota1.nextLine();
  42. Divi();
  43. if(tool.equals("1")){
  44. //The start of CalCulous
  45. try{
  46. Scanner pota =new Scanner(System.in);
  47. Divi();
  48. System.out.println("Enter 1st number :");
  49. System.out.print("》》 ");
  50. int lisa1 = pota.nextInt();
  51. System.out.println("Enter 2st number :");
  52. System.out.print("》》 ");
  53. int lisa2 = pota.nextInt();
  54. System.out.println("Enter Operator :");
  55. System.out.print("》》 ");
  56. char operator = pota.next().charAt(0);
  57. switch(operator){
  58. case '+':
  59. System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 + lisa2) + " <<<");
  60. break;
  61. case '-':
  62. System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 - lisa2) + " <<<");
  63. break;
  64. case '*':
  65. System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 * lisa2) + " <<<");
  66. break;
  67. case '/':
  68. System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 / lisa2) + " <<<");
  69. break;
  70. case '%':
  71. System.out.println("Hey! "+ nameCapitalized + " Here's the answer " + ">>> " +(lisa1 % lisa2) + " <<<");
  72. break;
  73. default:
  74. System.out.println("You input wrong OPERATOR" + "\nPlease Put [ + ] [ - ] [ * ] [ / ] [ % ] <<<");
  75. System.out.println("Eg.");
  76. System.out.println("1st number :\n" + " 11 ");
  77. System.out.println("2st number :\n" + " 11 ");
  78. System.out.println("Enter Operator :\n" + " + ");
  79. System.out.println("Hey "+ nameCapitalized + " Here's the answer " + ">>> " + "22" + " <<<");
  80. break;
  81. }
  82. }
  83. catch(Exception e){
  84. Divi();
  85. System.out.println("!!!>>> Letters and Something are not ALLOWED <<<!!!");
  86. System.out.println("!!!>>> Only Numbers is allowed on this program <<<!!!");
  87. Divi();
  88. }
  89.  
  90. //This the end of Calculous
  91. }
  92. else if(tool.equals("2")){
  93.  
  94. //Start
  95. try{
  96. Scanner pota2=new Scanner(System.in);
  97. System.out.println("Enter radius of circle:");
  98. System.out.print("》》 ");
  99. int radius = pota2.nextInt();
  100. System.out.print("Hey! " + nameCapitalized + " The Area of Circle is :" + (Math.PI*radius*radius) + "\n");
  101. }
  102. catch(Exception e){
  103. System.out.println("!!!>>> Letters and Something are not ALLOWED <<<!!!");
  104. System.out.println("!!!>>> Only Numbers is allowed ont this program <<<!!!");
  105. }
  106.  
  107. //end
  108. }
  109. else if(tool.equals("3")){
  110. //Start
  111. Scanner pota4 = new Scanner(System.in);
  112. System.out.println("What's your Age?");
  113. System.out.print("》》 ");
  114. int age = pota4.nextInt();
  115. int yeah;
  116. yeah = ((66 - age) + 1952);
  117. System.out.println("Hey! " + nameCapitalized + " Your BirthYear Is " + ">>> "+ yeah + " <<<");
  118. switch (yeah){
  119. case 2000:
  120. System.out.println("Your on legal age!!!");
  121. }
  122. //end
  123. }
  124. else if(tool.equals("4")){
  125. Infoo();
  126. }
  127.  
  128. else if(tool.equals("/logout")||tool.equals("/reset")||tool.equals("/back")){
  129. break mloopp;
  130. }
  131. else{
  132. Divi();
  133. System.out.println(">>> You input wrong command <<<<");
  134. System.out.println("Just put the number of the tool you want");
  135. Divi();
  136. }
  137. }
  138.  
  139.  
  140. }
  141.  
  142. public static void Infoo(){
  143. //Start of information
  144. Hi();
  145. System.out.println(" This Program Develop by :");
  146. System.out.println(" >>> Creamydark <<<<");
  147. System.out.println(">>> Inspired by LaLisa Manoban ♡ <<<");
  148. System.out.println(" >>> ♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡ <<<");
  149. System.out.println("''When you don't create things,"+"\nyou become defined by your tastes \n rather than ability''");
  150. //End
  151. Divi();
  152. }
  153. public static void main(String[] args) throws InterruptedException,IOException
  154. {
  155. String[] vipList={"vip","lalisa_m","cyrah","franchesca","hannah","blackpink"};
  156.  
  157.  
  158. String lisa[][]={{"You have 》》 ",
  159. " 《《 attempt/s left 《《" ,
  160. "Username:",
  161. "Password :" ,
  162. "You Successfully loged in ''" ,"You Should to be logged in fisrt ''"},
  163. {"Username or Password is invalid ''",
  164. "Please wait ",
  165. "Username not found ''",
  166. " 《《","> Note ''"+"\n> Type /register to Register an Account √ \n> Type /info for more information''`"}};
  167. List<String> userList=new ArrayList<>();
  168. List<String> passList=new ArrayList<>();
  169. Scanner hey =new Scanner(System.in);
  170. userList.add("creamydark");
  171. passList.add("hey");
  172. int attemps=3,cooldown=5;
  173. Divi();
  174. System.out.println(lisa[1][4]);
  175. Divi();
  176. loopMain:
  177. while(true){
  178. int clockk=6;
  179. System.out.println(lisa[0][5]);
  180. Divi();
  181. System.out.println(lisa[0][0]+(attemps)+lisa[0][1]);
  182. System.out.println(lisa[0][2]);
  183. System.out.print("》》 ");
  184. username=hey.nextLine();
  185.  
  186. if(userList.contains(username)){
  187. Divi();
  188. System.out.println(lisa[0][3]);
  189. System.out.print("》》 ");
  190. String password=hey.nextLine();
  191. boolean lel=passList.contains(password);
  192. if(lel){
  193. Lalisa_m();
  194. }
  195. else{
  196. System.out.println(lisa[1][0]);
  197. Divi();
  198. }
  199. }
  200. else if(Arrays.asList(vipList).indexOf(username.toLowerCase())>=0){
  201. Divi();
  202. System.out.println("Nice'' you are using Special key 》》 " + username + " 《《");
  203. Lalisa_m();
  204. }
  205. else if(username.equals("/info")){
  206. Infoo();
  207. }
  208. else if(attemps==1){
  209. Divi();
  210. for(int a=0; a<cooldown;a++){
  211. Thread.sleep(1000);
  212. clockk--;
  213. attemps=3;
  214. System.out.println(lisa[1][1] +(clockk)+lisa[1][3]);
  215. }
  216. Divi();
  217. }
  218. else if(username.equals("/register")||username.equals("/reg")){
  219. rloop:
  220. while(true){
  221. Divi();
  222. System.out.println("If you want to go 'Back' ''Type /back or /login ");
  223. System.out.println("》》 No. "+userList.size()+" of Registered Account/s");
  224. System.out.println("Enter your decided username ''");
  225. System.out.print("》》 ");
  226. String rusername=hey.nextLine();
  227. boolean ruser=userList.contains(rusername);
  228. if(ruser){
  229. System.out.println("Username is already used'' "+"\nPlease Input a nee one'' ");
  230. Divi();
  231. }
  232.  
  233. else if(rusername.equals("/back")||rusername.equals("/login")){
  234. break rloop;
  235. }
  236. else{
  237. Divi();
  238. System.out.println("Enter your decided password ''");
  239. System.out.print("》》 ");
  240. String rpassword=hey.nextLine();
  241. userList.add(rusername);
  242. passList.add(rpassword);
  243. Divi();
  244. System.out.println("Registered Successfully''");
  245. break rloop;
  246. }
  247. }
  248. }
  249.  
  250. else{
  251. attemps--;
  252. System.out.println(lisa[1][2]);
  253. Divi();
  254. }
  255. }
  256. }
Add Comment
Please, Sign In to add comment