tagged [arrays]

Copy one string array to another

Copy one string array to another How can I copy a `string[]` from another `string[]`? Suppose I have `string[] args`. How can I copy it to another array `string[] args1`?

11 Oct at 11:7

What’s the difference between "Array()" and "[]" while declaring a JavaScript array?

What’s the difference between "Array()" and "[]" while declaring a JavaScript array? What's the real difference between declaring an array like this: and

25 Dec at 09:48

View array in Visual Studio debugger?

View array in Visual Studio debugger? Is it possible to view an array in the Visual Studio debugger? QuickWatch only shows the first element of the array.

How to clear an array

How to clear an array I have a global variable `int[]` and I want to clear its data and fill it again in a loop. How could this possible in C#?

1 Feb at 11:0

convert string[] to int[]

convert string[] to int[] Which is the fastest method for convert an string's array ["1","2","3"] in a int's array [1,2,3] in c#? thanks

21 Jun at 09:41

Insert new item in array on any position in PHP

Insert new item in array on any position in PHP How can I insert a new item into an array on any position, for example in the middle of array?

19 Feb at 12:27

to remove first and last element in array

to remove first and last element in array How to remove first and last element in an array? For example: Expected output array:

7 Dec at 16:21

Convert string array to lowercase

Convert string array to lowercase I have string array `string[] MyArray`. What is the quickest (meaning least code, not fastest performance) way to convert all string array elements to lowercase?

24 Jan at 21:19

How do I determine the size of my array in C?

How do I determine the size of my array in C? How do I determine the size of my array in C? That is, the number of elements the array can hold?

20 Jan at 16:31

Initializing a list to a known number of elements in Python

Initializing a list to a known number of elements in Python Right now I am using a list, and was expecting something like: Should I use array instead?

28 Oct at 22:46

array of string with unknown size

array of string with unknown size How is an array of string where you do not know where the array size in c#.NET?

21 Oct at 21:0

What is the difference between Array.GetLength() and Array.Length?

What is the difference between Array.GetLength() and Array.Length? How do you use the `Array.GetLength` function in C#? What is the difference between the `Length` property and the `GetLength` functio...

19 Jul at 09:4

Add a element to a PHP associative array

Add a element to a PHP associative array Above is my associative array. How can I bring 3=>england to front of the array?

5 May at 10:43

What is the best way to remove the first element from an array?

What is the best way to remove the first element from an array? I have string array (`String[]`) and I need to remove the first item. How can I do that efficiently?

13 Feb at 17:58

Combine two integer arrays

Combine two integer arrays Is there a way to create a single array out of two? E.g.

15 Jan at 00:30

Java - How do I make a String array with values?

Java - How do I make a String array with values? I know how to make an empty array, but how do I make a `String` array with values from the start?

18 Dec at 04:13

List to array conversion to use ravel() function

List to array conversion to use ravel() function I have a list in python and I want to convert it to an array to be able to use `ravel()` function.

29 Jun at 21:18

Difference between ToCharArray and ToArray

Difference between ToCharArray and ToArray What is the difference between `ToCharArray` and `ToArray` The result seems to be the same.

10 May at 12:48

Convert array to tuple?

Convert array to tuple? Is it possible to convert array to tuple in C#? Something like this:

6 Jun at 09:34

Put result of String.Split() into ArrayList or Stack

Put result of String.Split() into ArrayList or Stack I am using the `String.Split()` method in C#. How can I put the resulting `string[]` into an `ArrayList` or `Stack`?

18 Nov at 22:30

How to Convert unsigned char* to std::string in C++?

How to Convert unsigned char* to std::string in C++? I have `unsigned char*`, want to convert it to `std::string`. Can you please tell me the safest way to do this?

7 Oct at 22:51

Add new value to an existing array in JavaScript

Add new value to an existing array in JavaScript In PHP, I'd do something like: How would I do the same thing in JavaScript?

15 Nov at 10:9

If (Array.Length == 0)

If (Array.Length == 0) If an array is empty, it looks like you can't check it's length using ".length". What's the best way to check if an array is empty?

9 Jul at 14:6

How do I convert struct System.Byte byte[] to a System.IO.Stream object in C#?

How do I convert struct System.Byte byte[] to a System.IO.Stream object in C#? How do I convert struct `System.Byte` `byte[]` to a `System.IO.Stream` object in ?

19 Apr at 17:55

How to find if an array contains a specific string in JavaScript/jQuery?

How to find if an array contains a specific string in JavaScript/jQuery? Can someone tell me how to detect if `"specialword"` appears in an array? Example:

8 Nov at 15:36