-
Jackson @JsonView examples
In Jackson, we can use @JsonView to limit or control fields display for different users.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
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.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java How to check if a String is numeric
Few Java examples to show you how to check if a String is numeric.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
JSON.simple – How to parse JSON
In this tutorial, we will show you how to parse JSON with JSON.simple
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Convert Array to ArrayList
In Java, we can use new ArrayList<>(Arrays.asList(array)) to convert an Array into an ArrayList
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java – Convert String to double
In Java, we can use Double.parseDouble() to convert a String to double
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java How to generate a random String
Few Java examples to show you how to generate a random alphanumeric String, with a fixed length.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
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.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
FastJson Convert Java objects to / from JSON
FastJson provides easily APIs to convert Java objects to / from JSON
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java How to save a String to a File
In Java, there are many ways to write a String to a File.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Convert File to String
In Java, we have many ways to convert a File to a String.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java what is -Xms and -Xmx parameter?
In Java, -Xms set initial Java heap size, while -Xmx set the maximum Java heap size.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
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.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Add new line in String
Different operating system has a different new line or line separator string:
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java How to change date format in a String
If Java 8, DateTimeFormatter, else SimpleDateFormat to change the date format in a String.
轻舞肥羊2019-08-11【[Java]】
阅读更多