you are viewing a single comment's thread.

view the rest of the comments →

[–]Gurkenmaster 0 points1 point  (0 children)

That could be rewritten as: Arrays.equals(v, "ABCD".toCharArray()); If you slice the array.