Topic: 求助: 如何将args[]接收的"数字"字符串,在main()方法中转化为整数? |
Print this page |
1.求助: 如何将args[]接收的"数字"字符串,在main()方法中转化为整数? | Copy to clipboard |
Posted by: 寂寞高手 Posted on: 2005-04-07 16:31 如何将args[]接收的"数字"字符串,在main()方法中转化为整数? 因为我想从键盘接收整型数,但是不知道如何去转换! 谢谢. |
2.Re:求助: 如何将args[]接收的"数字"字符串,在main()方法中转化为整数? [Re: 寂寞高手] | Copy to clipboard |
Posted by: vicious Posted on: 2005-04-07 17:54 Integer.parseInt(String s) |
3.Re:求助: 如何将args[]接收的"数字"字符串,在main()方法中转化为整数? [Re: 寂寞高手] | Copy to clipboard |
Posted by: ginger547 Posted on: 2005-04-08 14:51 Integer i = Integer.parseInt(args[0]) |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |