What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-27 08:20:18
basic java interview questions
There are many questions that can be made to test your java knowledge, like the ones below: Explain JDK, JRE and JVM? Explain public static void main(String args[]) in Java Why Java is platform independent? Why Java is not 100% Object-oriented? What are ... Add solution -
Java 2022-03-26 13:40:11
generate all prime number less than n java
/** Author: Jeffrey Huang As far as I know this is almost the fastest method in java for generating prime numbers less than n. A way to make it faster would be to implement Math.sqrt(i) instead of i/2. I don't know if you could implement sieve of eratost... Add solution -
Java 2022-03-25 07:40:02
convert base64 to pdf in java
import java.io.File; import java.io.FileOutputStream; import java.util.Base64; class Base64DecodePdf { public static void main(String[] args) { File file = new File("./test.pdf"); try ( FileOutputStream fos = new FileOutputStream(fil... Add solution -
C++ 2022-03-25 00:20:07
clase estatica c++
class MyClass { public: static int var; //Declaración de una variable 'static' static void oneMethod(); //Declaración de un método 'static' }; int MyClass::var = 100; //Definición de la variable 'static' void MyClass::one... Add solution -
Java 2022-03-24 14:25:01
how can you record your screen using java
import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class ScreenCapture { public static void main(String args... Add solution