Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,160

    Re: Generic Array Tools (lend me a critical eye)

    Consider the following - an adaptation of your 2D array code:


    public static void main(String[] args){
    int[][] a = {{1,2},{3,4}};
    int[][] b = new int[a.length+1][];
    for ( int i = 0; i <...
  2. Replies
    9
    Views
    1,160

    Re: Generic Array Tools (lend me a critical eye)

    I'm not sure about the goal here, but if you are wishing for a more dynamic array perhaps use a List. Alternatively you can make your methods more flexible by adding a parameter which allows one to...
Results 1 to 2 of 2