java - How to empty specific char array positions -
i have 200-elements-long char array, load vector new characters in loop, , @ each cycle element number can different previous one, how can empty unwanted position of array? note: element size have of 200 , can't resolve problem creating new instance of object new.
thanks
do mean like:
arrays.fill(array, index, array.length, '\0');
? of course, overwrite rest of array u+0000 values... there's no such thing char[]
element being "empty". there always char
@ every element in array; u+0000 one way of indicating "don't treat real data".
Comments
Post a Comment