I try to use the boolean in my class and get this message
“reference to Boolean is ambiguous, both class jxl.write.Boolean in jxl.write and class java.lang.Boolean in java.lang match”
What can I do in order not to take this error?
Thank you in advance.
Just use
java.lang.Booleaninstead ofBooleanFrom the error message it seems there are two imports of class Boolean
1 by default
java.lang.*2
jxl.write.BooleanSo you have to mention explicitly which Boolean you are referring in order to help compiler solve the ambiguity
Also See