几个搞怪代码,不知道有多老了,呵呵

fdm_sea 2006-02-03 10:46:07
public class A {
public static void main(String[] args) {
System.out.println("A curiosity");
a: // www.rgagnon.com/howto.html
System.out.println("compile Ok!");
}
}

public class CC {
static int fubar = 42;

CC getCC() {
return null;
}

public static void main(String args[]) {
CC cc = new CC();
System.out.println(cc.getCC().fubar);
}
}

public class Homework {
public static void main(String[] OoO) {
for (int oOo = 0; oOo < OoO.length; ++oOo)
main(OoO[oOo]);
}

public static void main(String oOo) {
String Oo0 = "9876543210";
long o0o = oOo.length() * Oo0.length();
for (int OoO = oOo.length(); --OoO >= 0;) {
int O0O = Oo0.indexOf(oOo.charAt(OoO));
o0o -= O0O < 0 ? 012 : ++O0O;
}
main(oOo, o0o);
}

public static void main(String Oo0, long oOo) {
System.out.print("Sum of digits in ");
for (int O0O = 0; O0O < Oo0.length(); ++O0O)
System.out.print(Oo0.charAt(O0O));
System.out.print(" = ");
System.out.println(oOo);
}
}
...全文
126 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
racewind 2006-02-04
  • 打赏
  • 举报
回复
#_!

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧