tagged [arrays]

Array containing Methods

Array containing Methods I was wondering if you can create an Array or a List that contains methods. I don't want to use a switch or lots of if statements. Thanks

10 Oct at 11:41

Obtain smallest value from array in Javascript?

Obtain smallest value from array in Javascript? Array justPrices has values such as: How do I return the smallest value in the array?

19 Jan at 23:51

Nullable Array Notation

Nullable Array Notation I am new to nullable. Is there a meaningful difference between the possible notations? `string?[] str` `string[]? str` and even `string?[]? str` seems to all be valid

2 Jun at 19:16

.NET / C# - Convert char[] to string

.NET / C# - Convert char[] to string What is the proper way to turn a `char[]` into a string? The `ToString()` method from an array of characters doesn't do the trick.

17 Jul at 15:39

Variable length (Dynamic) Arrays in Java

Variable length (Dynamic) Arrays in Java I was wondering how to initialise an integer array such that it's size and values change through out the execution of my program, any suggestions?

11 Mar at 16:22

Python Array with String Indices

Python Array with String Indices Is it possible to use strings as indices in an array in python? For example:

22 Sep at 02:14

How to convert List<List<int>> to an array of arrays

How to convert List> to an array of arrays What is the best way to convert a list into an array of type `int[][]`?

21 Mar at 17:22

How to get an array of unique values from an array containing duplicates in JavaScript?

How to get an array of unique values from an array containing duplicates in JavaScript? Given a `['0','1','1','2','3','3','3']` array, the result should be `['0','1','2','3']`.

4 Feb at 10:0

Declare and Initialize String Array in VBA

Declare and Initialize String Array in VBA This should work according to another stack overflow post but its not: Can anyone let me know what is wrong?

14 Oct at 20:54

Preserving order with LINQ

Preserving order with LINQ I use LINQ to Objects instructions on an ordered array. Which operations shouldn't I do to be sure the order of the array is not changed?

11 Aug at 17:41

Remove element of a regular array

Remove element of a regular array I have an array of Foo objects. How do I remove the second element of the array? I need something similar to `RemoveAt()` but for a regular array.

5 Aug at 15:31

JavaScript push to array

JavaScript push to array How do I push new values to the following array? I tried `json.push("coolness":"34.33");`, but it didn't work.

Convert String to int array in java

Convert String to int array in java I have one string: ie `"[1,2]"` is like a single String. How do I convert this `arr` to int array in java?

27 Feb at 08:30

Get file name from byte array or Stream

Get file name from byte array or Stream Is it possible to get filename from the byte array or stream? I wont to save the file. I just want to retrieve its name.

8 May at 23:12

C# declare empty string array

C# declare empty string array I need to declare an empty string array and i'm using this code But I get "method name expected" error. What's wrong?

17 May at 21:26

How to initialize an array in Kotlin with values?

How to initialize an array in Kotlin with values? In Java an array can be initialized such as: How does Kotlin's array initialization look like?

4 Mar at 21:9

How do I remove duplicate items from an array in Perl?

How do I remove duplicate items from an array in Perl? I have an array in Perl: How do I remove the duplicates from the array?

25 Dec at 19:57

Remove empty elements from an array in Javascript

Remove empty elements from an array in Javascript How do I remove empty elements from an array in JavaScript? Is there a straightforward way, or do I need to loop through it and remove them manually?

24 Aug at 20:58

Best way to combine two or more byte arrays in C#

Best way to combine two or more byte arrays in C# I have 3 byte arrays in C# that I need to combine into one. What would be the most efficient method to complete this task?

26 May at 17:49

Gets byte array from a ByteBuffer in java

Gets byte array from a ByteBuffer in java Is this the recommended way to get the bytes from the ByteBuffer

27 Jan at 02:30

Fastest way to compare a string with an array of strings in C#2.0

Fastest way to compare a string with an array of strings in C#2.0 What is the fastest way to compare a string with an array of strings in C#2.0

4 Jan at 10:47

Random shuffling of an array

Random shuffling of an array I need to randomly shuffle the following Array: Is there any function to do that?

16 Jun at 04:37

Convert a list<int> to a joined string of ints?

Convert a list to a joined string of ints? I have an int array with the value 3,99,6. How do i convert the array into the string `3,99,6` with linq?

1 Jun at 19:56

C# Byte[] Byte array to Unicode string

C# Byte[] Byte array to Unicode string I need very fast conversion from byte array to string. Byte array is Unicode string. --- ![enter image description here](https://i.stack.imgur.com/KFwUg.jpg)

20 Feb at 10:4

Empty elements in C# byte array

Empty elements in C# byte array Is there any method to empty an in ?

6 Jul at 02:59