Empty an array in Java / processing

后端 未结 8 1393
醉梦人生
醉梦人生 2020-11-27 19:05

Other than looping through each element in an array and setting each one to null, is there a native function in Java / processing to simply empty an array (or destroy it, to

8条回答
  •  忘掉有多难
    2020-11-27 19:23

    I was able to do that with the following 2 lines, I had an array called selected_items used to get all selected items on a dataTable

    selected_items = null;
    selected_items = [];
    

提交回复
热议问题