The Arduino IDE was written in Java. You can utilize the JArduino (Java-Arduino) library, which gives a Java API to control your Arduino utilizing sequential port (utilizing a USB link, or remote gadgets carrying on as sequential ports from a product perspective), UDP (by means of an ethernet shield). All the code identified with correspondence among Java and Arduino is overseen inside by the library.