# Search:

Type: Posts; User: sanfor

1. ## Thread: help help, ... :) "game of life"

by sanfor
Replies
3
Views
2,964

### Re: help help, ... :) "game of life"

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...
2. ## Thread: help help, ... :) "game of life"

by sanfor
Replies
3
Views
2,964

### help help, ... :) "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...

by sanfor
Replies
2
Views
707

### Re: Arrays: question about "removing" items.

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)

by sanfor
Replies
2
Views
707

### Arrays: question about "removing" items.

hello.. guys
i am trying to figure out how to remove "some" x from array..

but still i get errors :S with..

array[i]=arr[i];
5. ## Thread: help: union of two array,.. kinda problem

by sanfor
Replies
2
Views
4,048

### Re: help: union of two array,.. kinda problem

public static int[] union(int[] arr1,int[] arr2) {

int[] arr3 = new int[arr1.length+arr2.length];

System.arraycopy(arr1, 0, arr3, 0,...
6. ## Thread: help: union of two array,.. kinda problem

by sanfor
Replies
2
Views
4,048

### help: union of two array,.. kinda problem

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... =...
Results 1 to 6 of 6