Puzzle 17: Huh
Unicode转移符构成的程序
这是一段可以编译成功的Java代码:
\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0063\u006c\u0061\u0073\u0073\u0020\u0048\u0065\u0020\u007b\u0020\u0020\u0020\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0053\u0074\u0072\u0069\u006e\u0067\u005b\u005d\u0020\u0061\u0072\u0067\u0073\u0029\u0020\u007b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0053\u0079\u0073\u0074\u0065\u006d\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e\u0028\u0022\u0068\u0065\u006c\u006c\u006f\u0077\u006f\u0072\u006c\u0064\u0022\u0029\u003b\u0020\u0020\u0020\u0020\u007d\u007d
注意在写的时候不要换行,文件名为"He.java"。
它实际上相当于:
public class He {
public static void main(String[] args) {
System.out.println("helloworld");
}
}
这段代码而已。
附
- 转化Java源代码为Unicode转义字符的工具(需要使劲优化的)
- Puzzle 14: Escape Rout
- Puzzle 15: HelloWhirled