What do you want to save?
Add Code snippet
New code examples
-
-
Java 2021-09-25 22:54:05
array declaration injava
// both are valid declarations int intArray[]; or int[] intArray; byte byteArray[]; short shortsArray[]; boolean booleanArray[]; long longArray[]; float floatArray[]; double doubleArray[]; char charArray[]; // an array of references to objects of // t... Add solution -
Javascript 2021-09-25 17:28:05
access to nested properties on javascript using property names
const getNestedObject = (nestedObj, pathArr) => { return pathArr.reduce((obj, key) => (obj && obj[key] !== 'undefined') ? obj[key] : undefined, nestedObj); } // pass in your object structure as array elements const name = getNes... Add solution -
C 2021-09-25 15:51:04
BlockChain in c
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
Javascript 2021-09-24 08:53:03
Number.prototype.between = function(a, b) { var min = Math.min.apply(Math, [a, b]), max = Math.max.apply(Math, [a, b]); return this > min && this < max; };
//get min/max value of arrays function getArrayMax(array){ return Math.max.apply(null, array); } function getArrayMin(array){ return Math.min.apply(null, array); } var ages=[11, 54, 32, 92]; var maxAge=getArrayMax(ages); //92 var minAge=get... Add solution -
C# 2021-09-22 10:09:01
How to make a array in c#
string[] stringArray = new string[6]; //or int[] array1 = new int[] { 1, 3, 5, 7, 9 }; // string[] weekDays = new string[] { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; //etc Add solution
Best helpers
Ranking is empty