
Patrick B. answered 04/25/21
Math and computer tutor/teacher
Input is read typically from disk file, keyboard, or from hardware device.
Scanner scanner = new Scanner(System.in); // establishes keyboard input
Your last program did file input...
Device I/O can be Serial, via RS232 or RJ45 connection, or via Internet SOCKETS.