Making Your Application Interactive

  • Iuliana Cosmina


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. But most applications nowadays require interaction with the user. The user can be provided access by entering a username and a password; the user is sometimes required to enter information 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 is covering a few ways to build interactive Java applications. Interactive Java application takes their input either from the console, either from Java built interfaces, either desktop or web.

Copyright information

© Iuliana Cosmina 2018

Authors and Affiliations

  • Iuliana Cosmina
    • 1
  1. 1.EdinburghUK

Personalised recommendations