About 8,240,000 results
Open links in new tab
  1. C# Creating an array of arrays - Stack Overflow

    I think you may be looking for Jagged Arrays, which are different from multi-dimensional arrays (as you are using in your example) in C#. Converting the arrays in your declarations to jagged …

  2. 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 …

  3. 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 = …

  4. 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 …

  5. 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.

  6. What is the difference between Array and Arrays class in Java?

    Mar 8, 2016 · java.util.Arrays. This class contains various methods for manipulating arrays (such as sorting and searching). This class also contains a static factory that allows arrays to be …

  7. 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 …

  8. arrays - Definition of subarray - Stack Overflow

    Mar 14, 2011 · The sub-arrays for this array are: please click the below image description you can find possible subarrays for above array enter image description here. Total number of …

  9. 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 …

  10. Arrays vs Vectors: Introductory Similarities and Differences

    Feb 26, 2013 · Arrays contain a specific number of elements of a particular type. So that the compiler can reserve the required amount of space when the program is compiled, you must …

Refresh