I use LINQ to Objects instructions on an ordered array. Which operations shouldn't I do to be sure the o
In Java, arrays don't override toString(), so if you try to print one directly, you get the className + &
I have a String[] with values like so: public static final String[] VALUES = new String[] {"AB","BC","CD","AE
I have an array that is initialized like: Element[] array = {new Element(1), new Element(2), new Element(3)};
I'm researching hours and hours, but I could not find any clear, efficient way to make it :/ I have a co
I'm trying to write a function that either accepts a list of strings, or a single string. If it's a
I have an array of JavaScript objects: var objs = [ { first_nom: 'Lazslo', last_nom: 'Jam
How do I check if a particular key exists in a JavaScript object or array? If a key doesn't exist, and I
I am looking for a JavaScript array insert method, in the style of: arr.insert(index, item) Preferably in jQu
In Java you can use a for loop to traverse objects in an array as follows: String[] myStringArray = {"Hello",
What is the most concise and efficient way to find out if a JavaScript array contains a value? This is the onl
How can I loop through all the entries in an array using JavaScript? I thought it was something like this: f
I have an array of numbers and I'm using the .push() method to add elements to it. Is there a simple way
What's the best way to determine the first key in a possibly associative array? My first thought it to ju
PHP treats all arrays as associative, so there aren't any built in functions. Can anyone recommend a fair
I'm integrating an API to my website which works with data stored in objects while my code is written usi
Some elements in my array are empty strings based on what the user has submitted. I need to remove those eleme
I have a PHP array as follows: $messages = [312, 401, 1599, 3, ...]; I want to delete the element containin