About 13,200,000 results
Open links in new tab
  1. How to make an array of arrays in Java - Stack Overflow

    Arrays are cumbersome, in most cases you are better off using the Collection API. With Collections, you can add and remove elements and there are specialized Collections for …

  2. java - How to add new elements to an array? - Stack Overflow

    May 16, 2010 · The size of an array can't be modified. If you want a bigger array you have to instantiate a new one. A better solution would be to use an ArrayList which can grow as you …

  3. Arrays.fill with multidimensional array in Java - Stack Overflow

    Aug 19, 2011 · 4 Multidimensional arrays are just arrays of arrays and doesn't check the type of the array and the value you pass in (this responsibility is upon the developer). Thus you can't …

  4. java - Make copy of an array - Stack Overflow

    Arrays.copyOf (): If you want to copy first few elements of an array or full copy of array, you can use this method. Obviously it’s not versatile like System.arraycopy () but it’s also not confusing …

  5. How to use an Array with an If statement - Stack Overflow

    May 15, 2013 · I am new to Java. I'm not really sure how to effectively use an array in Java. I may not be able to use the correct terms so I will attempt to show you in code. Basically, this is my …

  6. c# - Merging two arrays in .NET - Stack Overflow

    Sep 12, 2008 · Is there a built in function in .NET 2.0 that will take two arrays and merge them into one array? The arrays are both of the same type. I'm getting these arrays from a widely used …

  7. Using NumPy to build an array of all combinations of two arrays

    My function takes float values given in a 6-dim NumPy array as input. What I tried to do initially was this: First, I created a function that takes two arrays and generate an array with all …

  8. Converting array to list in Java - Stack Overflow

    How do I convert an array to a list in Java? I used the Arrays.asList() but the behavior (and signature) somehow changed from Java SE 1.4.2 (docs now in archive) to 8 and most …

  9. How do I make a JSON object with multiple arrays?

    The JSON data is an object (basically an associative array). Indexed arrays use square brackets, , while associative arrays use curly braces, . Any of the data within the outermost object can …

  10. How to compare arrays in JavaScript? - Stack Overflow

    Oct 20, 2011 · I'd like to compare two arrays... ideally, efficiently. Nothing fancy, just true if they are identical, and false if not. Not surprisingly, the comparison operator doesn't seem to work. …