Yes, most of the constructors for the wrapper classes (which Cay Horstmann calls boxed primitive classes) have been deprecated because the valueOf() methods are likely to be more efficient in memory terms.
I can't see where you are using Thread#stop(), but that is a particularly dangerous thing to write. Maybe only PS used Thread#stop()
Jiub Anderson wrote:... and here is the tester that contains the warning:
Also, I don't see how you tester is actually testing your IntegerNumber class.
I did not finish writing the test class yet because I stopped at this warning. I am testing to display a menu so user can select which method to test or to exit the program, and prompt the user to enter appropriate data (integer numbers) from the keyboard according to the selected option.
posted 2 months ago
Campbell Ritchie wrote:(...) Maybe only PS used Thread#stop()
I can't see any reason this couldn't just be
Those are horrible variable names, by the way. First, don't start a variable name with an uppercase letter; use camelCase. Second, don't use a variable name that differs from a keyword only by capitalization. Third, a variable name should be self-documenting, like
All things are lawful, but not all things are profitable.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database