0
How to add an String[value] to String[] defined
String[] a = {"value1","value2","value3"}; how do we adding another value to String[]a? and how to get value that was added to String[]a? so when we adding another value to String[]a the new value will fill to the next value of String[]a without Removing the value of String[]a.
2 Réponses
+ 7
You can append a value to the end, then get it using its place in the array (one added to the end would be gotten by a[3]
+ 7
Keep in mind, though, that the size of an array can't be modified. It specifically has to be an array list.