What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-28 11:04:03
C# int array
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 -
C# 2021-09-28 10:31:01
C# Program For Check Total Occurrence Of A Number In An Array
using System; using System.Linq; namespace CheckOccurrenceOfNumberInArray { class Program { static void Main(string[] args) { int[] array = { 1, 20, 15, 23, 15, 14, 26, 188,175,12, 36, 78, 15, 3, 5, 91... Add solution -
Other 2021-09-25 19:11:02
Insertion sort code in Java
/** * Insertion sort algorithm, O(n^2) time complexity. */ public static void insertionSort(int[] arr) { int n = arr.length; for(int i = 1; i < n; i++) { int key = arr[i]; int j = i - 1; //shift until you find the position to place the ... Add solution -
Other 2021-09-24 14:35:03
what is overloading
Overloading mean same method name and different parameter, it can happen in same class. it's a feature that allows us to have more than one method with same name. Example: sort method of Arrays class Arrays.sort(int[] arr) Arrays.sort(String[] arr) ...... 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 -
Java 2021-09-18 18:34:03
Arrays copyOfRange() method in java
// arrays copyOfRange() method in java example import java.util.Arrays; public class ArrayCopyOfRangeDemo { public static void main(String[] args) { int[] arrNumber = { 66, 67, 68, 69, 70, 71, 72 }; System.out.println("Given array... Add solution
Best helpers
Ranking is empty