fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. /* The class name doesn't have to be Main, as long as the class is not public. */
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. String str = new String(Base64.decode("LyJwNh9iPil3MyMSGRhWCCpXBExXAWZBGg1eFjNcShpSCmZxCwJSAC9TBDxbBTRfCw9KRDNbHkxHCzISBwNBAyNcRkxJAWZfBQlHASgSDgkTEilAAwtWRCRTHg9bATUSBANURCRXHg1fASg="));
  9. String message ="test";
  10. String paramString = "paramTest";
  11. int paramInt= 2;
  12. String str= "";
  13.  
  14. System.out.println("----------------- START ---------------------");
  15. for (int i = 0; i < message.length(); i++)
  16. {
  17. int k = paramString.charAt(i % paramString.length());
  18. System.out.println("k-mod:" + k);
  19.  
  20. int j = message.charAt(i);
  21. System.out.println("j:" + j);
  22. k &= 1 << paramInt;
  23. System.out.println("k Paramint:" + k);
  24. str = str + (k ^ j);
  25. System.out.println("j end:" + j);
  26. System.out.println(str);
  27. System.out.println("--------------");
  28.  
  29.  
  30. }
  31. }
  32. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:8: cannot find symbol
symbol  : variable Base64
location: class Main
  String str = new String(Base64.decode("LyJwNh9iPil3MyMSGRhWCCpXBExXAWZBGg1eFjNcShpSCmZxCwJSAC9TBDxbBTRfCw9KRDNbHkxHCzISBwNBAyNcRkxJAWZfBQlHASgSDgkTEilAAwtWRCRTHg9bATUSBANURCRXHg1fASg="));
                          ^
Main.java:12: str is already defined in main(java.lang.String[])
  String str= "";
         ^
2 errors
stdout
Standard output is empty