当前位置: 技术问答>java相关
请大家帮忙告诉我这个函数的作用!!!
来源: 互联网 发布时间:2015-01-09
本文导语: private static String c(String s1) { char ac[] = s1.toCharArray(); int i1 = ac.length; int j1 = 0; label0: do { int k1 = 0; a...
private static String c(String s1)
{
char ac[] = s1.toCharArray();
int i1 = ac.length;
int j1 = 0;
label0:
do
{
int k1 = 0;
ac[j1] ^= 'c';
do
{
j1++;
k1++;
if(i1 != j1)
switch(k1)
{
case 1:
ac[j1] ^= '16';
break;
case 2:
ac[j1] ^= '_';
break;
case 3:
ac[j1] ^= 'h';
break;
case 4:
ac[j1] ^= '/';
break;
case 5:
continue label0;
}
else
return new String(ac);
} while(true);
} while(true);
}
{
char ac[] = s1.toCharArray();
int i1 = ac.length;
int j1 = 0;
label0:
do
{
int k1 = 0;
ac[j1] ^= 'c';
do
{
j1++;
k1++;
if(i1 != j1)
switch(k1)
{
case 1:
ac[j1] ^= '16';
break;
case 2:
ac[j1] ^= '_';
break;
case 3:
ac[j1] ^= 'h';
break;
case 4:
ac[j1] ^= '/';
break;
case 5:
continue label0;
}
else
return new String(ac);
} while(true);
} while(true);
}
|
我换一种写法,可能好懂些:
public static String cs(String s){
char ac[] = s.toCharArray();
int k=0;
for(int i=0;i
public static String cs(String s){
char ac[] = s.toCharArray();
int k=0;
for(int i=0;i