I'm translating a small java library to objective c. I'm having some trouble translating the following:
return other.tokens[0].equals(tokens[0]) &&
other.tokens[1].equals(tokens[1]) &&
other.tokens[2].equals(tokens[2]) &&
other.tokens[3].equals(tokens[3]);
where other is an instance of a class, and tokens is a string array that is an instance variable of the same class. So far, what I have is this:
return ([other [[tokens[0] equals:tokens[0]]]] &&
[other [[tokens[1] equals:tokens[1]]]] &&
[other [[tokens[2] equals:tokens[2]]]] &&
[other [[tokens[3] equals:tokens[3]]]]);
But I keep getting an "expected identifier" error, which I believe means I have something wrong with my syntax.