Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/357.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 识别屏幕上的数字_Java_Numbers_Screen - Fatal编程技术网

Java 识别屏幕上的数字

Java 识别屏幕上的数字,java,numbers,screen,Java,Numbers,Screen,您建议如何识别屏幕上的数字,并将其实时存储。 我在用Java,这方面我是新手。谢谢。如果“识别屏幕上的数字”是指识别用户键入的数字,我会使用JOptionPane.showInputDialog。看起来是这样的: int userInput = JOptionPane.showInputDialog("Enter a number"); int number = userInput; 这将存储用户在变量number中输入的数字 我希望我回答了你的问题我不知道你说的是什么意思:识别屏幕上的数字!

您建议如何识别屏幕上的数字,并将其实时存储。
我在用Java,这方面我是新手。谢谢。

如果“识别屏幕上的数字”是指识别用户键入的数字,我会使用
JOptionPane.showInputDialog
。看起来是这样的:

int userInput = JOptionPane.showInputDialog("Enter a number");
int number = userInput;
这将存储用户在变量
number
中输入的数字


我希望我回答了你的问题

我不知道你说的是什么意思:识别屏幕上的数字!我想获取屏幕上显示的数字同时运行另一个程序您好,谢谢您的回答,我想获取屏幕上显示的数字,并存储它们