What do you want to save?
Add Code snippet
New code examples
-
C 2022-02-19 19:55:11
What is Array?
• An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the main m... Add solution -
TypeScript 2022-02-19 10:40:07
create class angular
// to create a model class, we first need to create a new file //f.e person.ts export class Person { constructor( public name: string, public lastName: string, public age:number ) {} } //now that we have the model class we can create array... Add solution -
Other 2022-02-18 13:30:04
A mutable object
Mutable is a type of variable that can be changed. In JavaScript, only Objects and Arrays(technically a type of object) are mutable, not primitive(immutable) values. Immutables are the objects whose state cannot be changed once the object is created. ... Add solution -
C++ 2022-02-12 03:45:02
how to search integer in c++
//******************************************************** // search algorithm for arrays //******************************************************** #include <iostream> using namespace std; void initializeArray(int list[], int listSize); int ... Add solution -
Java 2022-02-11 22:40:02
how to get a section of an array in java
//index 0 1 2 3 4 int[] arr = {10, 20, 30, 40, 50}; Arrays.copyOfRange(arr, 0, 2); // returns {10, 20} Arrays.copyOfRange(arr, 1, 4); // returns {20, 30, 40} Arrays.copyOfRange(arr, 2, arr.length); // returns {30, 40, 50} (l... Add solution