What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-11 06:27:10
how to put a string in an array parameter java
public class Test { public static void main(String[] args) { // Declare a constant value for the number of lockers final int NUMBER_OF_LOCKER = 100; // Create an array to store the status of each array // The first student closed all lo... Add solution -
Other 2021-09-23 21:31:03
Intermediate Algorithm Scripting: DNA Pairing
function pairElement(str) { //define a map object with all pair possibilities var map = {T:'A', A:'T', G:'C', C:'G'}; //split str into a char Array strArr = str.split(''); //replace each Array item with a 2d Array using map for (var i=0;i<... Add solution -
Other 2021-09-05 10:32:02
find element in an array and replace it by a callback function
var charSets = new Array("ab","bb","cd","ab","cc","ab","dd","ab"); function replaceElement(element,index,array) { if (element == "ab") array[index] = "**&qu... Add solution