Home > Back-end >  Why use the parameter is not able to use the equals () to compare?
Why use the parameter is not able to use the equals () to compare?

Time:11-28

Public String getUrl (PmsSearchParam param String... ValueId)

Call getUrl (PmsSearchParam param String... ValueId) method for valueId assignment after

PmsSkuAttrValue. Equals (valueId)) are both type String value 42 results as false

GetUrl (PmsSearchParam param String... ValueId) instead of getUrl (PmsSearchParam param, String valueId) return results after argument is: true

CodePudding user response:

The String... And String is different types, the former is equivalent to the String array [], an array of objects, and the array object, equals to the same?

CodePudding user response:

  • Related