quiz2prepare - Identifiers: cannot begin with a digit, and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Identifiers: cannot begin with a digit, and cannot contain spaces. Extends: indicates that a new class inherits from an existing class Method String.valueof converts a numeric value to text Operands: The expressions on either side of the multiplication operator are referred to as its operands. Method Integer.parseInt converts text to an integer If totalJTextField is a JtextField, you can use: totalJTextField.gettext () to get the text property of the totalJTextField use format componentNameEventName for the name of an event handler convert the number 100 to a text value and displays the text in totalResultsJTextField: totalResultsJTextField.setText( String.valueOf( 100 ) ); Variable: storage location that holds data, allows you to store and manipulate data without using GUI components. All variable declarations include the variables type and an optional initialization value variable name must be a valid identifier, and is not a keyword double stores numbers with a decimal point, these are called
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

quiz2prepare - Identifiers: cannot begin with a digit, and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online