Hi,
I have some python code which I am trying to convert into a java equivalent for a project at work and am a little stumped over one bit of code.
I think its a case of I've been looking at this too long that now I've confused myself entirely and my mind has gone blank. Any assistance would be greatly appreciated.
Sorry but I don't know how to add tags for python code so I hope this works
validateID is some function
empID is a unique ID represented as a string of chars in python
checkDigit is an arbitrary integer.
My main issue is the :-1.
if (validateID(empID[:-1]) != checkDigit): ..... .....
I basically need to know how to convert that line to a java equivalent.
Thanks in advance.