LinkedList vs ArrayList

have you tried using float instead of int for…
int x, y, z;