I'm currently building a project that requires communication between an Arduino Uno and a Java program. The Java program consists of multiple files, one of which is responsible for sending data that can be used by other Java client programs. I want to add my Arduino Uno program to this system and have it be able to read data that would be sent from one of the Java files. My goal is to send a single decimal value from the Java program to the Arduino, but I'm not too sure how to go about doing this, given my experience with Arduinos is minimal. The idea is that the user can press a key on the computer to trigger some data formation handled by the Java program, that would then be sent to an Arduino Uno that is connected to the same computer. My goal is to have the data sent as quick as possible so that it can simulate reading data in a "real-time".
Thank you in advance!