Write a class ReorderArray with a public method reorder that takes one parameter arr of type int[] and returns the arr such that all zeros should come in front of the arr
![Write a class ReorderArray with a public method reorder that takes one parameter arr of type int[] and returns the arr such that all zeros should come in front of the arr Write a class ReorderArray with a public method reorder that takes one parameter arr of type int[] and returns the arr such that all zeros should come in front of the arr](https://realcoder.techss24.com/wp-content/uploads/2022/06/Write-a-class-ReorderArray-with-a-public-method-reorder-that-takes-one-parameter-arr-of-type-int-and-returns-the-arr-such-that-all-zeros-should-come-in-front-of-the-arr.png)
Write a class ReorderArray with a public method reorder that takes one parameter arr of type int[] and returns the arr such that all zeros should come in front of the arr. Assumptions: arr is never null Here is an example: Enter no of elements in the arr: 8 Enter elements in the arr…