pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Sat 11th Mar 2017 12:21
raw | new post

  1.     public static String a(String str) {
  2.         int length = str.length();
  3.         char[] cArr = new char[length];
  4.         length--;
  5.         int i = length;
  6.         while (length >= 0) {
  7.             int i2 = i - 1;
  8.             cArr[i] = (char) (str.charAt(i) ^ 43);
  9.             if (i2 < 0) {
  10.                 break;
  11.             }
  12.             length = i2 - 1;
  13.             cArr[i2] = (char) (str.charAt(i2) ^ 5);
  14.             i = length;
  15.         }
  16.         return new String(cArr);
  17.     }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at