Any messages involving Africa, Ghana, Nigeria, Singapore, wiring money, online escrow services, or cashiers checks are definitely scams and should be ignored.
Do not be fooled by requests for money from people you just met no matter how convincing their story is or how beautiful or handsome their photos appear.
The photos are almost certainly not really them at all but merely photos of models copied from the Internet.(They send you a phony, forged or stolen check to cash and send the money to them.
Using bit arithmetic and then comparing with the greater than operator can lead to unexpected results (of course depending on the value of SWT. = 0' instead of ' Class implements Cloneable but does not define or use the clone method.
SELECTED is a negative number, this is a candidate for a bug. SELECTED is not negative, it seems good practice to use '!
This non-final class defines a clone() method that does not call super.clone().
If this class ("A") is extended by a subclass ("B"), and the subclass B calls super.clone(), then it is likely that B's clone() method will return an object of type A, which violates the standard contract for clone().
If possible, rewrite the code so that the Random object is created once and saved, and each time a new random number is required invoke a method on the existing Random object to obtain it.
If it is important that the generated Random numbers not be guessable, you not create a new Random for each random number; the values are too easily guessable.You should strongly consider using a java.security.Secure Random instead (and avoid allocating a new Secure Random for each random number needed). Requiring callers to pass only String constants or interned strings to a method is unnecessarily fragile, and rarely leads to measurable performance gains. This equals method is checking to see if the argument is some incompatible type (i.e., a class that is neither a supertype nor subtype of the class that defines the equals method).If all clone() methods call super.clone(), then they are guaranteed to use Object.clone(), which always returns an object of the correct type.This class defines a clone() method but the class doesn't implement Cloneable.There are some situations in which this is OK (e.g., you want to control how subclasses can clone themselves), but just make sure that this is what you intended. In general, exceptions should be handled or reported in some way, or they should be thrown out of the method. In general, exceptions should be handled or reported in some way, or they should be thrown out of the method.