private  DataStructures createArray(Object type){

        Structure structure;

        if(type.getClass() == Integer.class){
            structure = new IntegerArray(kitSize, length, chars);
        }
        else
        if(type.getClass() == Float.class){
            structure = new FloatArray(kitSize, length, chars);
        }
        else
        if(type.getClass() == String.class){
            structure = new StringArray(kitSize, length, chars);
        }
        else {
            return null;
        }

        if(state.equals("Sorted") && structure != null)
            structure.sortedStructure();

        return structure.getStructure();

    }