What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-28 14:58:03
array rotation program in java
//Rotating array left //d = number of rotations static void rotLeft(int[] a, int d) { //using secondary array of same size int [] n = new int[a.length]; //saving element into array n[] according to newlocation of rotations(d) for(int i = 0; i... Add solution -
Java 2021-09-17 06:03:04
java convert string to int array
import java.util.Arrays; public class StringToIntegerArray { public static void main(String args[]) { String [] str = {"123", "345", "437", "894"}; int size = str.length; int [] arr = new int [s... Add solution -
C# 2021-09-10 12:15:03
10 random numbers unity
void Start(){ //having an int Array of 10 members int [] numbers = new int[10]; //using a string variable to keep record of the used numbers string usedNumbers ="-"; //cycle to get 10 random numbers for (int i = 0 ; i<10; i++) {... Add solution
Best helpers
Ranking is empty