-
Jackson How to parse JSON
Jackson provide writeValue() and readValue() methods to convert Java objects to / from JSON.
Date: 2019-08-11 View: 1115
-
Jackson @JsonView examples
In Jackson, we can use @JsonView to limit or control fields display for different users.
Date: 2019-08-11 View: 1313
-
Java Check if a String is empty or null
In Java, we can use (str != null && !str.isEmpty()) to make sure the String is not empty or null.
Date: 2019-08-11 View: 1006
-
Java How to check if a String is numeric
Few Java examples to show you how to check if a String is numeric.
Date: 2019-08-11 View: 1041
-
JSON.simple – How to parse JSON
In this tutorial, we will show you how to parse JSON with JSON.simple
Date: 2019-08-11 View: 1339
-
Java Convert Array to ArrayList
In Java, we can use new ArrayList<>(Arrays.asList(array)) to convert an Array into an ArrayList
Date: 2019-08-11 View: 1054
-
Java – Convert String to double
In Java, we can use Double.parseDouble() to convert a String to double
Date: 2019-08-11 View: 1283
-
Java How to generate a random String
Few Java examples to show you how to generate a random alphanumeric String, with a fixed length.
Date: 2019-08-11 View: 1178
-
Java password generator example
A Java example to generate a strong, secure random password containing [a-zA-Z0-9!@#$%&*()_+-=[]?] characters, with a length of 15.
Date: 2019-08-11 View: 1101
-
FastJson Convert Java objects to / from JSON
FastJson provides easily APIs to convert Java objects to / from JSON
Date: 2019-08-11 View: 1240
-
Java How to save a String to a File
In Java, there are many ways to write a String to a File.
Date: 2019-08-11 View: 1201
-
Java Convert File to String
In Java, we have many ways to convert a File to a String.
Date: 2019-08-11 View: 1076
-
Java what is -Xms and -Xmx parameter?
In Java, -Xms set initial Java heap size, while -Xmx set the maximum Java heap size.
Date: 2019-08-11 View: 1099
-
Java 8 Should we close the Stream after use?
Only Streams whose source are an IO channel like Files.lines(Path, Charset) need to be closed.
Date: 2019-08-11 View: 1079
-
Java Add new line in String
Different operating system has a different new line or line separator string:
Date: 2019-08-11 View: 1141