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 5 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.
I've never won anything before. Not even a tiny ad:
Create Edit Print & Convert PDF Using Free API with Java