Remove unneccessary space
This commit is contained in:
parent
a638a4a409
commit
a74723ca66
Binary file not shown.
|
@ -1,7 +1,6 @@
|
||||||
//This code is written by Siwat Sirichai
|
//This code is written by Siwat Sirichai
|
||||||
package partB;
|
package partB;
|
||||||
public class Replace {
|
public class Replace {
|
||||||
|
|
||||||
public static int[] replace(int[] a, int v, int v2) {
|
public static int[] replace(int[] a, int v, int v2) {
|
||||||
if (a==null)return a; //If a is a null pointer, return immediately to prevent a NullPointerException
|
if (a==null)return a; //If a is a null pointer, return immediately to prevent a NullPointerException
|
||||||
for(int i = 0; i < a.length;i++) //loop from 0 to the length of array a, number of completed iteration is stored in i (type int)
|
for(int i = 0; i < a.length;i++) //loop from 0 to the length of array a, number of completed iteration is stored in i (type int)
|
||||||
|
|
Loading…
Reference in New Issue