The method signature is not correct for Java.
change the argument :
public TreeNode sortedArrayToBST(final List A) { }