What do you want to save?
Add Code snippet
New code examples
-
Java 2021-08-29 06:03:01
generate a random string in java
import java.util.Random; public class Generator { public static String generateRandomPassword(int len) { String chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijk" +"lmnopqrstuvwxyz!@#$%&"; Random rnd = new Ra... Add solution -
Java 2021-08-27 17:29:01
check if string has special characters java
//1. Using Regex import java.util.regex.Matcher; import java.util.regex.Pattern; public class JavaHungry { public static void main(String args[]) { String inputString = "Alive*is*Awesome$"; Pattern pattern = Pattern.compi... Add solution
Best helpers
Ranking is empty