java - How to manage Continuous Changing values in an array of strings -


i have array of strings values in array changing continuously changing. there other way of managing array except removing items , changing index locations?

public int[] deviceid=null; deviceid=new string[devicecount]; 

in case devicecount changing new device comes. continuously need change array size , add or remove items

java offers handy mechanism known arraylist. it's dynamic array can use you're describing.

http://docs.oracle.com/javase/7/docs/api/java/util/arraylist.html


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -