如何在 Java ME 中向用户询问一些号码?
我对 Java Me 很陌生(第一次)。我希望我的程序向用户询问 IP 地址。 0 到 255 之间的四个数字。这并不困难,但正如我所说,我是 Java Me 的新手。
I am very new to Java Me (first time). I want my program to ask the user for an IP addres. So four numbers that are between 0 and 255. It doesn't need to be difficult, but as I said, I'm new to Java Me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您希望用户如何输入IP地址?例如,您想使用 TextField 吗?您可以执行以下操作:
How do you want the user to input the IP address? Do you want to use a TextField for example? You could do something like the following: