© Iuliana Cosmina 2022
I. CosminaJava 17 for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7080-6_10

10. Making Your Application Interactive

Iuliana Cosmina1  
(1)
Edinburgh, UK
 

So far in the book, input for our Java programs data was provided via arrays or variables that were initialized inside the code or via program arguments. In real life, however, most applications require interaction with the user. The user can be provided access by entering a username and a password, and the user is sometimes required to type in details to confirm his/her identity or to instruct the application what to do. Java supports multiple methods for user input to be read. In this chapter we will be covering a few ways to build interactive Java applications. Interactive ...

Get Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.