Instructions: Answer the following questions one at a time. After answering each question, check your answer (by clicking on the check-mark icon if it is available) before proceeding to the next question.
Getting Ready: Before going any further, you should:
If you have not already done so, you must complete the lab on serialization before you can start this lab. If you have already completed the executable .jar files you should start with that version of the code instead.
ResourceBundle
and PropertyResourceBundle
classes.
Strings_en_US.properties
using the resource bundle format in the package
taxeze.gui. It must contain all of the String
constants in the TaxezeController and TaxezeWindow
classes. The name of the constant must be the key and the value
of the constant must be the value. Use an = to delimit the
key and value. The value must not contain quote characters.
String
constants from both TaxezeController
and TaxezeWindow.
ResourceBundle final attribute named
STRINGS (with package visibility) to
the TaxezeController class.
ResourceBundle into the attribute
named STRINGS
when the class is loaded.
String constant
in TaxezeController with an appropriate call
to STRINGS.getStrings().
String constant in TaxezeWindow
with an appropriate call
to STRINGS.getStrings(). (Hint: You may want to add an
import static statement to TaxezeWindow.)
static
Locale attribute (with
package visibility) named LOCALE to
the TaxezeController class and initialize it when
it is loaded using
the static
getDefault() method in
the Locale class.
String.format() so that the first parameter
is now LOCALE.
String literals?
Copyright 2021