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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -