What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-18 07:29:08
.length array java
/** * An Example to get the Array Length is Java */ public class ArrayLengthJava { public static void main(String[] args) { String[] myArray = { "I", "Love", "Music" }; int arrayLength = myArray.length; //array length attribu... Add solution -
Javascript 2021-11-16 13:47:18
find second largest number in array javascript
var secondMax = function (){ var arr = [20, 120, 111, 215, 54, 78]; // use int arrays var max = Math.max.apply(null, arr); // get the max of the array arr.splice(arr.indexOf(max), 1); // remove max from the array return Math.max.apply(nul... Add solution -
-
Java 2021-11-12 04:09:12
array methods in java
// ! IMPORTANTE ! // in JAVA an array is not the same as an ArrayList object!! // 1 - declare, instanciate and populate int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; // 2 - declare and instanciate an int array with maxSize // note: the index goes betwee... Add solution -
C 2021-11-05 17:07:14
missing number in c
#include <stdio.h> int main(){ int n; int total = 0; printf("How many numbers do you want to enter : "); scanf("%d",&n); int i =1; while(i<=n){ printf("Enter your number %d : ",i); int array; scanf(&q... Add solution -
Java 2021-11-04 21:55:15
how to find length of array in java
/** * An Example to get the Array Length is Java */ public class ArrayLengthJava { public static void main(String[] args) { String[] myArray = { "I", "Love", "Music" }; int arrayLength = myArray.length; //array length attribu... Add solution