What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-01 03:46:25
convert hashset to int java
import java.util.HashSet; import java.util.Set; public class SetExample { public static void main(String args[]) { //Instantiating the HashSet Set<Integer> hashSet = new HashSet<Integer>()... Add solution -
Java 2022-01-31 22:51:40
how to initalize the array as to false
import java.util.Arrays; public class BooleanArrayTest { public static void main(String[] args) { Boolean[] boolArray = new Boolean[5]; // initialize a boolean array for(int i = 0; i < boolArray.le... Add solution -
Javascript 2022-01-31 07:11:15
java script zip function
// Zipping two arrays into an object, better performance than map let labels = ['a', 'b', 'c'] let values = [1, 2, 3] let out = {} for (var i = 0; i < labels.length; i++) { out = { ...out, [labels[i]]: values[i] } } console.debug(out); // { a: 1,... Add solution -
Java 2022-01-30 18:01:50
Write code to declare an array that will hold calendar months (.e. January to December) java
public class App { public static String months[]; public static void main ( String[] args ) { months = new String[ 13 ]; months[ 0 ] = null; months[ 1 ] = "January"; months[ 2 ] = "February"; ... Add solution -
Java 2022-01-30 01:36:35
how to append values in integer array in java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Main { private static Integer[] append(Integer[] arr, int element) { List<Integer> list ... Add solution -
Other 2022-01-29 21:00:16
MPI_STATUS_IGNORE
MPI_STATUS_IGNORE informs MPI to not fill an MPI_Status, which saves some time. It is used in message reception (MPI_Recv), non-blocking operations wait (MPI_Wait, MPI_Waitany) and test (MPI_Test, MPI_Testany). A version of MPI_STATUS_IGNORE exists als... Add solution -
C 2022-01-29 10:36:54
RTOS task status
/* This example demonstrates how a human readable table of run time stats information is generated from raw data provided by uxTaskGetSystemState(). The human readable table is written to pcWriteBuffer. (see the vTaskList() API function which actually do... Add solution -
Java 2022-01-28 20:37:10
find the largest and smallest number in an unsorted integer array in Java
public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Number of integers to enter:"); int numberEnter = keyboard.nextInt(); int numbers[] = new int[numberEnter]; int pos = 0; ... Add solution -
Java 2022-01-28 03:56:14
java fill list
// -- Filling with fill() method example: List<String> arrlist = new ArrayList<String>(); //Add elements in the list arrlist.add("one"); arrlist.add("two"); arrlist.add("three"); // contents of list: [AA... Add solution