prompt = new Label("Enter integer and press Enter:");
creates a Label object, initializing the string literal to "Enter integer and press Enter:"
The idea is to label the text field so that the user will know what to do: type in an integer and press the Enter key.
We named it "prompt" because our intention is to prompt the user to act (in accordance with our wishes).
The word new is an operator that requests enough memory from the Java runtime system to store a Label object;
Label("Enter integer and press Enter:")
after the new operator, is used to construct our desired value for the Label object.
It is called a constructor for Label objects. We learn more about constructors later.
The = operator is an assignment operator: the value on its right is assigned to the name on its left: prompt (a name
that we declared would refer to an object of type Label).