Search:

Type: Posts; User: sanfor

Search: Search took 0.16 seconds.

  1. Replies
    3
    Views
    3,021

    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. Replies
    3
    Views
    3,021

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

    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...
  3. Replies
    2
    Views
    729

    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)
  4. Replies
    2
    Views
    729

    Arrays: question about "removing" items.

    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];
  5. Replies
    2
    Views
    4,091

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

    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,...
  6. Replies
    2
    Views
    4,091

    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