Use `Scanner` and `nextLine()`
Use `BufferedReader` and `readLine()`
Use `Console` and `readLine()`
Use `Scanner` and `next()`
Use `BufferedInputStream` with custom parsing
Use `JOptionPane.showInputDialog()`
Use `args[]` for command-line input
Use `Scanner` and `nextLine()`
Use `BufferedReader` and `readLine()`
Use `Console` and `readLine()`
Use `Scanner` and `next()`
Use `BufferedInputStream` with custom parsing
Use `JOptionPane.showInputDialog()`
Use `args[]` for command-line input