objects[1]=hashmap.getCustomeridCustomer().toString();
You cannot dereference a primitive type variables like that - getCustomeridCustomer().toString()
.
Instead just do as following (as you seem to want to assign the string representation of the int
primitive) -
objects[1]=String.valueOf(hashmap.getCustomeridCustomer());