About 7,000,000 results
Open links in new tab
  1. How do I concatenate two arrays in C#? - Stack Overflow

    Oct 10, 2009 · @Shimmy It would not. Inside this method x is but a local variable, passing x as a ref to the resize method would create a new array and alter (the local variable) x to point to it.

  2. Newest 'arrays' Questions - Stack Overflow

    I'm using structured arrays to store atoms data produced by LAMMPS (I'm using a structured array that follows its format). I need to rotate the positions: import numpy as np transform = …

  3. How to merge two arrays in JavaScript and de-duplicate items

    Oct 18, 2009 · Here is a slightly different take on the loop. With some of the optimizations in the latest version of Chrome, it is the fastest method for resolving the union of the two arrays …

  4. How do I use a nested IF(AND) in an Excel array formula?

    Jan 11, 2014 · Different contexts, different ways to "work as expected." :-) Multiplying arrays (implicitly TRUE->1, FALSE->0) is the array equivalent of and (returns non-zero if none is …

  5. Java Array Sort descending? - Stack Overflow

    Nov 7, 2009 · It's not directly possible to reverse sort an array of primitives (i.e., int[] arr = {1, 2, 3};) using Arrays.sort() and Collections.reverseOrder() because those methods require …

  6. What's the simplest way to print a Java array? - Stack Overflow

    Since Java 5 you can use Arrays.toString(arr) or Arrays.deepToString(arr) for arrays within arrays. Note that the Object[] version calls .toString() on each object in the array. The output is even …

  7. equals vs Arrays.equals in Java - Stack Overflow

    Jan 9, 2020 · But that logic doesn't apply to arrays. Arrays have data, and you expect comparison (via equals) to compare the data. Ideally, the way Arrays.deepEquals does, but at least the …

  8. .net - Easiest way to compare arrays in C# - Stack Overflow

    May 11, 2020 · In Java, Arrays.equals() allows to easily compare the content of two basic arrays (overloads are available for all the basic types). Is there such a thing in C#? Is there any …

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

    Dec 30, 2016 · The JSON data is an object (basically an associative array). Indexed arrays use square brackets, [0,1,2], while associative arrays use curly braces, {x:1,y:2,z:3}. Any of the …

  10. How do I declare an array in Python? - Stack Overflow

    Oct 3, 2009 · @AndersonGreen As I said there's no such thing as a variable declaration in Python. You would create a multidimensional list by taking an empty list and putting other lists …

Refresh