What do you want to save?
Add Code snippet
New code examples
-
Java 2022-01-30 01:36:35
how to append values in integer array in java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Main { private static Integer[] append(Integer[] arr, int element) { List<Integer> list ... Add solution -
Java 2022-01-28 21:07:43
Java Find the greatest common divisor of two positive integers. The integers can be large, so you need to find a clever solution.
import static java.math.BigInteger.valueOf; import java.math.BigInteger; public class GCD { public static int compute(int x, int y) { return valueOf(x).gcd(valueOf(y)).intValue(); } } Code language: Java (java) Add solution -
Java 2022-01-27 19:11:47
java fast input
// this program gives you fast input, especially for competitive programming import java.util.*; import java.io.*; public class PutYourClassNameHere { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokeniz... Add solution -
C# 2022-01-27 08:05:03
c# check if object is instance of class
using System; public interface IExample {} public class BaseClass : IExample {} public class DerivedClass : BaseClass {} public class Example { public static void Main() { var interfaceType = typeof(IExample); var base1 = new B... Add solution
Best helpers
Wayno
+5
TeacherSue
+5
IQAndreas
+5
AlecPerkey
+5
Sikku
+5
Winny
+5
Seria Yin
+5
T-rex
+5
Wilber82
+5
Sharma Pocso
+5
TJG
+5
JSanchez
+5
Kyle Smith
+5