so you mean i have to check if the x,y already on the board
everytime i call for this function:
before:
public static boolean checkCell(boolean[][] cells, int x, int y) {
if...
Type: Posts; User: sanfor
so you mean i have to check if the x,y already on the board
everytime i call for this function:
before:
public static boolean checkCell(boolean[][] cells, int x, int y) {
if...
i had a home work about whats called "Game of Life"
i had to write 4 functions as i did below:
function 1:
public static boolean isInside(boolean[][] cells, int x, int y) {
if...
good.. i forgot that :P
thanks alot
public static int[] remove(int[] arr,int x) {
int count=0,k=0;
for (int i=0;i<arr.length;i++)
if (arr[i] == x)
hello.. guys
i am trying to figure out how to remove "some" x from array..
i had this so far..
but still i get errors :S with..
array[i]=arr[i];
well.. thanks for the reply..
i already had it..
public static int[] union(int[] arr1,int[] arr2) {
int[] arr3 = new int[arr1.length+arr2.length];
System.arraycopy(arr1, 0, arr3, 0,...
hello guys..
i'm new here.
i am trying to do a function that unite two arrays.
this is my code:
arr4 = interSection = gets the intersection of the two arrays.
arr1,arr2 = similar... =...