Java 7 /可编译James bond ASCII艺术

内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用

  • 回答 (1)
  • 关注 (0)
  • 查看 (12)

我记得M. Joshua Bloch在去年的Devoxx上向我们展示了一个符合Java 7标准的(借助于通过项目硬币特性引入的_)James Bond ASCII艺术。

有谁知道我在哪里可以找到它?

提问于
用户回答回答于

此演示文稿的幻灯片37:

http://www.oracle.com/javaone/lad-en/session-presentations/corejava/22641-enok-1439101.pdf

// Courtesy Josh Bloch
int bond =
              0000_____________0000________0000000000000000__000000000000000000+
            00000000_________00000000______000000000000000__0000000000000000000+
           000____000_______000____000_____000_______0000__00______0+
          000______000_____000______000_____________0000___00______0+
         0000______0000___0000______0000___________0000_____0_____0+
         0000______0000___0000______0000__________0000___________0+
         0000______0000___0000______0000_________000___0000000000+
         0000______0000___0000______0000________0000+
          000______000_____000______000________0000+
           000____000_______000____000_______00000+
            00000000_________00000000_______0000000+
              0000_____________0000________000000007;

扫码关注云+社区