You could use commons lang’s ArrayUtils.
array = ArrayUtils.removeElement(array, element)
More Related Contents:
- Finding index of array of 2nd occurring element
- JAVA: calculate the average between two or more arrays [closed]
- Write a function that will sort a string array using Java
- JAVA ArrayIndexoutofBoundException issue
- Reading String for list of Integers separated by spaces [duplicate]
- Difference between int[] array and int array[]
- How to split a String by space
- Sort an array in Java
- Convert list to array in Java [duplicate]
- Is an array a primitive type or an object (or something else entirely)?
- Java, Shifting Elements in an Array
- Problem with assigning an array to other array in Java
- Why does Collections.sort use Mergesort but Arrays.sort does not?
- Why is System.arraycopy native in Java?
- Add JsonArray to JsonObject
- Java Arrays.equals() returns false for two dimensional arrays
- How to convert JSONObjects to JSONArray?
- How to clone a multidimensional array in java? [duplicate]
- How to check if array is already sorted
- java – passing array in oracle stored procedure
- How to access nested elements of json object using getJSONArray method
- how calculate java array memory usage
- Why can I edit the contents of a final array in Java?
- Why are new java.util.Arrays methods in Java 8 not overloaded for all the primitive types?
- Time Complexity for Java ArrayList
- java: Arrays.sort() with lambda expression
- Reverse Array Order
- Return the index of clicked button?
- what is Ljava.lang.String;@
- Create an array of ArrayList elements