arthas/tutorials/katacoda/command-pwd-cn/arthas-demo.md

11 lines
325 B
Markdown
Raw Normal View History

下载`math-game.jar`,再用`java -jar`命令启动:
`wget https://arthas.aliyun.com/math-game.jar
java -jar math-game.jar`{{execute T1}}
`math-game`是一个很简单的程序,它随机生成整数,再执行因式分解,把结果打印出来。如果生成的随机数是负数,则会打印提示信息。