In java, when determining whether a value values is null, most people use if (values. equals ("null"), this method cannot be used. Because the syntax is correct, no error is reported during program compilation, but a Bug occurs during runtime, the program is suspended. This is because values = "null" and values = null are not the same thing.
The correct use is if (values! = Null)
When determining whether it is null, the correct method is: if ((""). equals (values), Here special attention: Using if (values = "") This method is firmly opposed, because: this method is used to determine whether the "Address" and "" of values are the same, rather than to determine whether the two values are the same. We recommend that you set the constant to the front when determining whether the values are equal. This will prevent the assignment of values with less equal numbers.