Java挑戰:在不使用點、反斜槓或分號的情況下輸出Hello World - Wouter Coekaerts
解決方案之一:
class NoDot { public static void main(String[] args) throws Exception { try (AutoCloseable o = new Throwable(((char)13)+"Hello world", null, true, false){}::printStackTrace) {} } } |
解決方案2:
@SuppressWarnings("deprecation") // newInstance is deprecated class NoDot { public static void main(String[] args) throws Exception { if(new ClassLoader(){{ try(AutoCloseable o = defineClass("A", new byte[]{ -54,-2,-70,-66,0,3,0,45,0,25,12,0,20,0,24,1,0,16,106,97,118,97,47,108,97,110,103,47,79,98, 106,101,99,116,1,0,6,60,105,110,105,116,62,7,0,2,12,0,3,0,8,7,0,13,1,0,5,112,114,105,110, 116,1,0,3,40,41,86,7,0,18,1,0,4,67,111,100,101,9,0,9,0,1,1,0,10,83,111,117,114,99,101,70, 105,108,101,1,0,19,106,97,118,97,47,105,111,47,80,114,105,110,116,83,116,114,101,97,109, 10,0,4,0,5,10,0,6,0,16,12,0,7,0,22,1,0,1,65,1,0,16,106,97,118,97,47,108,97,110,103,47,83, 121,115,116,101,109,1,0,12,72,101,108,108,111,32,119,111,114,108,100,10,1,0,3,111,117,116, 8,0,19,1,0,21,40,76,106,97,118,97,47,108,97,110,103,47,83,116,114,105,110,103,59,41,86,7, 0,17,1,0,21,76,106,97,118,97,47,105,111,47,80,114,105,110,116,83,116,114,101,97,109,59,0, 33,0,23,0,4,0,0,0,0,0,1,0,1,0,3,0,8,0,1,0,10,0,0,0,25,0,2,0,1,0,0,0,13,42,-73,0,14,-78,0, 11,18,21,-74,0,15,-79,0,0,0,0,0,1,0,12,0,0,0,2,0,17 }, 0, 292)::newInstance){} }}==null){} } } |
相關文章
- Java-反斜槓Java
- 輸出hello world
- latex 如何輸出反斜槓、加單行註釋
- python輸出hello worldPython
- ls -ld 符號連結 加上斜槓輸出不同符號
- 徹底理解斜槓和反斜槓的區別
- Java中路徑反斜槓問題Java
- 特殊字元——反斜槓(\)字元
- Python中,如何使用反斜槓 ““分割字串?Python字串
- vue元件中,編譯後的檔案斜槓變成了反斜槓。Vue元件編譯
- Java實現第一個程式碼,輸出 hello worldJava
- 在不影響程式使用的情況下新增shellcode
- 實驗二:編寫輸出"Hello World!"
- 入門輸出Hello World!——C語言C語言
- 使用IntelliJ IDEA 2020.2.2 x64 新建java專案並且輸出Hello WorldIntelliJIdeaJava
- Windows 練習python時檔案檔案用反斜槓不行,斜槓行WindowsPython
- 解析帶有反斜槓的json報文報錯JSON
- hello world 是如何輸出到瀏覽器的瀏覽器
- jmeter引數化導致反斜槓(\)被轉義JMeter
- Java 正規表示式替換斜槓Java
- 在docker中寫個Hello WorldDocker
- Hello, World
- Hello,World
- Hello World
- Hello World!
- Hello World !
- c語言程式的執行過程(以輸出hello,world為例)C語言
- WebGL 的 Hello WorldWeb
- react的”Hello World !“React
- 4.3.4.1 在不使用Oracle OMF的情況下建立CDBOracle
- 終於定製出順手的Obsidian斜槓命令
- 不應該在沒有 sudo 的情況下執行 Docker 的原因Docker
- 在不安裝oracle客戶端的情況下,使用PLSQLOracle客戶端SQL
- Go - Hello WorldGo
- Deep "Hello world!"
- Hello Python worldPython
- Hello World探究
- Docker Hello WorldDocker