One-dimensional code two-dimensional code Java implementation