What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-30 13:16:06
how to draw a graph in java
import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.RenderingHints; import java.awt.Stroke; import java.util.ArrayList; import java.uti... Add solution -
C# 2021-09-25 01:35:04
system.random reuses numbers
//Function to get a random number private static readonly Random random = new Random(); private static readonly object syncLock = new object(); public static int RandomNumber(int min, int max) { lock(syncLock) { // synchronize return random... Add solution -
Java 2021-09-17 16:31:01
write java program to cipher to encryption-decryption username and password
package com.javapapers.java.security; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Random; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBE... Add solution -
C# 2021-09-16 17:53:02
generate random string C#
private static Random random = new Random(); public static string RandomString(int length) { const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; return new string(Enumerable.Repeat(chars, length) .Select(s => s[random.N... Add solution
Best helpers
Ranking is empty