What do you want to save?
Add Code snippet
New code examples in category Java
-
Itamar 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 -
Syd Kerckhove 2021-08-28 23:59:02
how to use scanner class in java
import java.util.Scanner; // import scanner Scanner myScanner = new Scanner(System.in); // Make scanner obj String inputString = myScanner.nextLine(); // Take whole line boolean inputBoolean = myScanner.nextBoolean(); //Boolean input long inputLong ... Add solution -
-
-
Rehan Shah 2021-08-28 15:00:04
swagger
● Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services. ● Swagger allows you to describe the structure of your APIs so that machines can read ... Add solution