In this chapter, we will introduce primitive variables and compare/contrast them to reference variables. We will demonstrate how to perform math and logic functions using both primitive and String variables. A new GUI component, text field (which enables a user to input information to an application), will be demonstrated and we will revisit inheritance in more detail.
At the end of this chapter, you should understand:
- Primitive versus reference variables
- How to convert between variable types
- Wrapper classes
- Text fields
After completing the chapter, you should be able to:
- Use text fields to retrieve and display ...