In this code:I can see that unEncriptedpassWord is a PasswordClass object. But what about arg1? I suspect it is a String. Am I right? If that's the case, it can never be equal to a PasswordClass object. You would have to extract a String from that PasswordClass object and compare that to arg1.
The code below doesn't explain much about what is happening, you'd have to show the code for "PasswordClass" and there is no reference to what the arg1 object/variable is. If it an object and is not overriding the Object classes equals() method than the all that "if statement" is doing is checking if the unEncriptedpassWord object and the arg1 object are the same object.
Please provide more information reqarding the classes involved.
posted 10 years ago
Here is my PasswordClass:
Here is the LogOnConnetion class that calls the PasswordClass:
A day job? In an office? My worst nightmare! Comfort me tiny ad!