fork(3) download
  1. package com.hvl.mobile.puzzle;
  2.  
  3. import java.io.PrintStream;
  4. import java.util.HashMap;
  5. import java.util.Iterator;
  6. import java.util.Map;
  7. import java.util.Random;
  8. import java.util.Set;
  9.  
  10. public class c
  11. {
  12.  
  13. private static final char[] a = " ab�cdf�ghi�ejklnmopqrs�t�uvwxyz1243568790.;,~!'^+%&/()=?-:".toCharArray();
  14. private static Random b = new Random();
  15.  
  16. public static int a(int paramInt1, int paramInt2)
  17. {
  18. return b.nextInt(paramInt2 - paramInt1 + 1) + paramInt1;
  19. }
  20.  
  21. public static String a()
  22. {
  23. return c("Odd").toLowerCase().substring(1, 3);
  24. }
  25.  
  26. public static String a(int paramInt)
  27. {
  28. return String.valueOf(a[paramInt]);
  29. }
  30.  
  31. public static String a(int paramInt, int... paramVarArgs)
  32. {
  33. if (Math.log10(paramInt) > 2.0D) {
  34. return " ";
  35. }
  36. StringBuilder localStringBuilder = new StringBuilder();
  37. paramInt = 0;
  38. while (paramInt < paramVarArgs.length)
  39. {
  40. localStringBuilder.append(a[paramVarArgs[paramInt]]);
  41. paramInt += 1;
  42. }
  43. return localStringBuilder.toString();
  44. }
  45.  
  46. public static String a(String paramString)
  47. {
  48. int j = 0;
  49. paramString = paramString.split(" ");
  50. HashMap localHashMap = new HashMap();
  51. int k = paramString.length;
  52. int i = 0;
  53. Object localObject;
  54. if (i < k)
  55. {
  56. localObject = paramString[i];
  57. if (localHashMap.containsKey(localObject)) {
  58. localHashMap.put(localObject, Integer.valueOf(((Integer)localHashMap.get(localObject)).intValue() + 1));
  59. }
  60. for (;;)
  61. {
  62. i += 1;
  63. break;
  64. localHashMap.put(localObject, Integer.valueOf(1));
  65. }
  66. }
  67. paramString = "";
  68. Iterator localIterator = localHashMap.keySet().iterator();
  69. i = j;
  70. if (localIterator.hasNext())
  71. {
  72. localObject = (String)localIterator.next();
  73. if (((Integer)localHashMap.get(localObject)).intValue() < i) {
  74. break label183;
  75. }
  76. i = ((Integer)localHashMap.get(localObject)).intValue();
  77. paramString = (String)localObject;
  78. }
  79. label183:
  80. for (;;)
  81. {
  82. break;
  83. return paramString;
  84. }
  85. }
  86.  
  87. public static String a(String... paramVarArgs)
  88. {
  89. StringBuilder localStringBuilder = new StringBuilder();
  90. int j = paramVarArgs.length;
  91. int i = 0;
  92. while (i < j)
  93. {
  94. localStringBuilder.append((char)Integer.parseInt(paramVarArgs[i], 2));
  95. i += 1;
  96. }
  97. return localStringBuilder.toString();
  98. }
  99.  
  100. public static String b()
  101. {
  102. String str = c(new String(a).substring(0, 30));
  103. StringBuilder localStringBuilder = new StringBuilder();
  104. localStringBuilder.append(str.charAt(20));
  105. localStringBuilder.append(str.charAt(17));
  106. localStringBuilder.append(a[a(0, 38)]);
  107. localStringBuilder.append(str.charAt(15));
  108. localStringBuilder.append(str.charAt(19));
  109. localStringBuilder.append(str.charAt(12));
  110. str = localStringBuilder.toString();
  111. localStringBuilder.setLength(0);
  112. localStringBuilder.append(str.substring(0, 2));
  113. localStringBuilder.append(str.substring(3));
  114. return localStringBuilder.toString();
  115. }
  116.  
  117. public static String b(int paramInt)
  118. {
  119. if (Math.log10(paramInt) > 2.0D) {
  120. return "!";
  121. }
  122. if (paramInt / 3 <= 3) {
  123. return " ";
  124. }
  125. if (paramInt * 2 / 5 + 24 >= 30) {
  126. return "...";
  127. }
  128. return null;
  129. }
  130.  
  131. public static byte[] b(String paramString)
  132. {
  133. int j = paramString.length();
  134. byte[] arrayOfByte = new byte[j / 2];
  135. int i = 0;
  136. while (i < j)
  137. {
  138. arrayOfByte[(i / 2)] = ((byte)((Character.digit(paramString.charAt(i), 16) << 4) + Character.digit(paramString.charAt(i + 1), 16)));
  139. i += 2;
  140. }
  141. return arrayOfByte;
  142. }
  143.  
  144. public static String c(String paramString)
  145. {
  146. paramString = paramString.toCharArray();
  147. int j = 0;
  148. int k = paramString.length - 1;
  149. while (k > j)
  150. {
  151. int i = paramString[j];
  152. paramString[j] = paramString[k];
  153. paramString[k] = i;
  154. k -= 1;
  155. j += 1;
  156. }
  157. return new String(paramString);
  158. }
  159.  
  160. public static final Map a = new HashMap();
  161.  
  162. static
  163. {
  164. a.put("mektep", "school");
  165. a.put("hekim", "doctor");
  166. a.put("filhakika", "truly");
  167. a.put("n�ktedan", "humorous");
  168. a.put("sehven", "erroneously");
  169. a.put("mahlas", "pseudonym");
  170. a.put("sirayet", "contagion");
  171. a.put("fevkalbe�er", "hulk");
  172. a.put("feveran", "effervescence");
  173. }
  174.  
  175. public static String a(String paramString)
  176. {
  177. return b((String)a.get(paramString));
  178. }
  179.  
  180. private static String b(String paramString)
  181. {
  182. return paramString.substring(0, 2);
  183. }
  184.  
  185. public static String a = "All we have to decide is what to do with the time that is given to us.";
  186. public static String b = "Hope. It is the only thing stronger than fear. A little hope is effective. A lot of hope is dangerous. A spark is fine, as long as it's contained.";
  187. public static String c = "I'm gonna make him an offer he can't refuse.";
  188. public static String d = "Now you're looking for the secret, but you won't find it, because of course you're not really looking. You don't really want to know. You want to be fooled.";
  189. public static String e = "Now you're looking for the secret, but you won't find it, because of course you're not really looking. You don't really want to know. You want to be fooled.";
  190. public static String f = "We all want to help one another. Human beings are like that. We want to live by each other's happiness, not by each other's misery.";
  191. public static String g = "May the Force be with you.";
  192. public static String h = "But you cannot kiss an idea, cannot touch it or hold it. Ideas do not bleed. They do not feel pain. They do not love. And it is not an idea that I miss, it is a man.";
  193. public static String i = "They may take our lives, but they'll never take our freedom!";
  194. public static String j = "When you realize you want to spend the rest of your life with somebody, you want the rest of your life to start as soon as possible.";
  195. public static String k = "Of all the gin joints in all the towns in all the world, she walks into mine.";
  196. public static String l = "The first rule of Fight Club is: You do not talk about Fight Club.";
  197. public static String m = "Bond. James Bond.";
  198. public static String n = "You don't understand! I could've had class. I could've been a contender. I could've been somebody, instead of a bum, which is what I am.";
  199. public static String o = "The greatest trick the devil ever pulled was convincing the world he didn't exist.";
  200. public static String p = "Mama says, 'Stupid is as stupid does.'";
  201. public static String q = "Shoot all the blue jays you want, if you can hit em, but remember that it�s a sin to kill a mockingbird.";
  202. public static String r = "You'll always remember this as the day that you almost caught Captain Jack Sparrow";
  203. public static String s = "You've got to ask yourself one question. Do I feel lucky? Well, do ya punk?";
  204. public static String t = "Just the fact that some geniuses were laughed at does not imply that all who are laughed at are geniuses.";
  205. public static String u = "No";
  206. public static String v = "The person who reads too much and uses his brain too little will fall into lazy habits of thinking.";
  207.  
  208. private static String a()
  209. {
  210. String str1 = d.a();
  211. String str2 = d.a(new String[] { "01101111", "01110010" });
  212. String str3 = a.a(d.b());
  213. String str4 = d.a(b.h);
  214. String str5 = d.a(42);
  215. String str6 = d.b(10);
  216. String str7 = new String(d.b("7468657265206973"));
  217. String str8 = d.a(b.u);
  218. String str9 = d.a(200, new int[] { 24, 21, 30 });
  219. String str10 = d.a(100, new int[] { 19, 10, 12 });
  220. return str1 + " " + str2 + " " + str3 + " " + str4 + str5 + str6 + str7 + " " + str8 + " " + str9 + str10 + "!";
  221. }
  222.  
  223. public static void a(String[] paramArrayOfString)
  224. {
  225. paramArrayOfString = a();
  226. System.out.println(paramArrayOfString);
  227. }
  228. }
  229.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: class c is public, should be declared in a file named c.java
public class c
       ^
Main.java:160: error: variable a is already defined in class c
	public static final Map a = new HashMap();
	                        ^
Main.java:175: error: method a(String) is already defined in class c
  public static String a(String paramString)
                       ^
Main.java:180: error: method b(String) is already defined in class c
  private static String b(String paramString)
                        ^
Main.java:185: error: variable a is already defined in class c
	public static String a = "All we have to decide is what to do with the time that is given to us.";
	                     ^
Main.java:186: error: variable b is already defined in class c
	  public static String b = "Hope. It is the only thing stronger than fear. A little hope is effective. A lot of hope is dangerous. A spark is fine, as long as it's contained.";
	                       ^
Main.java:208: error: method a() is already defined in class c
  private static String a()
                        ^
Main.java:223: error: cannot declare both a(String[]) and a(String...) in c
  public static void a(String[] paramArrayOfString)
                     ^
Main.java:49: error: incompatible types: String[] cannot be converted to String
    paramString = paramString.split(" ");
                                   ^
Main.java:51: error: cannot find symbol
    int k = paramString.length;
                       ^
  symbol:   variable length
  location: variable paramString of type String
Main.java:56: error: array required, but String found
      localObject = paramString[i];
                               ^
Main.java:74: error: undefined label: label183
        break label183;
        ^
Main.java:146: error: incompatible types: char[] cannot be converted to String
    paramString = paramString.toCharArray();
                                         ^
Main.java:148: error: cannot find symbol
    int k = paramString.length - 1;
                       ^
  symbol:   variable length
  location: variable paramString of type String
Main.java:151: error: array required, but String found
      int i = paramString[j];
                         ^
Main.java:152: error: array required, but String found
      paramString[j] = paramString[k];
                 ^
Main.java:152: error: array required, but String found
      paramString[j] = paramString[k];
                                  ^
Main.java:153: error: array required, but String found
      paramString[k] = i;
                 ^
Main.java:164: error: cannot find symbol
    a.put("mektep", "school");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:165: error: cannot find symbol
    a.put("hekim", "doctor");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:166: error: cannot find symbol
    a.put("filhakika", "truly");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:167: error: cannot find symbol
    a.put("n?ktedan", "humorous");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:168: error: cannot find symbol
    a.put("sehven", "erroneously");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:169: error: cannot find symbol
    a.put("mahlas", "pseudonym");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:170: error: cannot find symbol
    a.put("sirayet", "contagion");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:171: error: cannot find symbol
    a.put("fevkalbe?er", "hulk");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:172: error: cannot find symbol
    a.put("feveran", "effervescence");
     ^
  symbol:   method put(String,String)
  location: variable a of type char[]
Main.java:177: error: cannot find symbol
    return b((String)a.get(paramString));
                      ^
  symbol:   method get(String)
  location: variable a of type char[]
Main.java:177: error: incompatible types: byte[] cannot be converted to String
    return b((String)a.get(paramString));
            ^
Main.java:210: error: cannot find symbol
    String str1 = d.a();
                   ^
  symbol:   method a()
  location: variable d of type String
Main.java:211: error: cannot find symbol
    String str2 = d.a(new String[] { "01101111", "01110010" });
                   ^
  symbol:   method a(String[])
  location: variable d of type String
Main.java:212: error: cannot find symbol
    String str3 = a.a(d.b());
                       ^
  symbol:   method b()
  location: variable d of type String
Main.java:213: error: cannot find symbol
    String str4 = d.a(b.h);
                       ^
  symbol:   variable h
  location: variable b of type Random
Main.java:214: error: cannot find symbol
    String str5 = d.a(42);
                   ^
  symbol:   method a(int)
  location: variable d of type String
Main.java:215: error: cannot find symbol
    String str6 = d.b(10);
                   ^
  symbol:   method b(int)
  location: variable d of type String
Main.java:216: error: cannot find symbol
    String str7 = new String(d.b("7468657265206973"));
                              ^
  symbol:   method b(String)
  location: variable d of type String
Main.java:217: error: cannot find symbol
    String str8 = d.a(b.u);
                       ^
  symbol:   variable u
  location: variable b of type Random
Main.java:218: error: cannot find symbol
    String str9 = d.a(200, new int[] { 24, 21, 30 });
                   ^
  symbol:   method a(int,int[])
  location: variable d of type String
Main.java:219: error: cannot find symbol
    String str10 = d.a(100, new int[] { 19, 10, 12 });
                    ^
  symbol:   method a(int,int[])
  location: variable d of type String
Main.java:225: error: incompatible types: String cannot be converted to String[]
    paramArrayOfString = a();
                          ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
40 errors
stdout
Standard output is empty