Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
*/
public class AllEvensToLeftandOddsToRight {

private AllEvensToLeftandOddsToRight() {

}

public static void moveAllEvensToLeft(int[] inputArray) {
public static void moveAllEvensToLeft(int[] inputArray) {

//Check boundary conditions for inputArray
if (inputArray == nul || inputArray.length==1){
return;
}

System.out.println();
System.out.println("Before moves:");
for (int input : inputArray) {
Expand Down