What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-27 22:40:23
c# movement script
using UnityEngine; using System.Collections; // This script moves the character controller forward // and sideways based on the arrow keys. // It also jumps when pressing space. // Make sure to attach a character controller to the same game object. // It... Add solution -
Java 2022-03-27 21:35:04
Sort string array in case insensitive order and case sensitive order java
import java.util.Arrays; public class SortStringArrayDemo { public static void main(String[] args) { String[] fruits = new String[5]; fruits[0] = "Mango"; fruits[1] = "cherries"; fruits[2] = "Apple&q... Add solution -
Other 2022-03-27 20:40:40
what is hamcrest
Hamcrest is a framework for writing matcher objects allowing 'match' rules to be defined declaratively. import org.junit.jupiter.api.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; public class BiscuitTe... Add solution -
Java 2022-03-27 20:40:19
TreeSet headSet(E toElement) method in java
import java.util.Iterator; import java.util.TreeSet; public class TreeSetHeadSetEToElementMethodExample { public static void main(String[] args) { TreeSet<Integer> ts = new TreeSet<Integer>(); TreeSet<Integer> hs = new ... Add solution -
C# 2022-03-27 19:15:02
top down shooting in unity 2D
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shooting : MonoBehaviour { public Transform firePoint; public GameObject bulletPrefab; public float bulletForce = 20f; // Update is called once... Add solution -
Java 2022-03-27 16:45:39
TreeMap clear() method in java
import java.util.TreeMap; public class TreeMapClearMethodExample { public static void main(String[] args) { TreeMap<Integer, String> tm = new TreeMap<Integer, String>(); tm.put(8, "red"); tm.put(12, "blue... Add solution -
Other 2022-03-27 16:25:48
Java Super Power java
import javax.swing.JOptionPane;public class SuperPower{public static void main(String[] args) {String power;power = JOptionPane.showInputDialog("What is your super power?");power = power.toUpperCase();JOptionPane.showMessageDialog(null,pow... Add solution -
C# 2022-03-27 16:05:25
Find Number of Repetitions of Substring
using System; using System.Linq; public class Program { public static int NumberOfRepeats(string str) { int length = str.Length; int checkLength = 2; while (checkLength < length) { if (length % checkLength == 0) { var times ... Add solution
Best helpers
Wayno
+5
IQAndreas
+5
AlecPerkey
+5
Seria Yin
+5
T-rex
+5
Wilber82
+5
Sharma Pocso
+5
TJG
+5
JSanchez
+5