-
Jackson @JsonView examples
In Jackson, we can use @JsonView to limit or control fields display for different users.
Date: 2019-08-11 View: 2101
-
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: 1678
-
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: 1723
-
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: 2054
-
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: 1698
-
Java – Convert String to double
In Java, we can use Double.parseDouble() to convert a String to double
Date: 2019-08-11 View: 2065
-
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: 1957
-
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: 1813
-
FastJson Convert Java objects to / from JSON
FastJson provides easily APIs to convert Java objects to / from JSON
Date: 2019-08-11 View: 2127
-
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: 1940
-
Java Convert File to String
In Java, we have many ways to convert a File to a String.
Date: 2019-08-11 View: 1816
-
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: 2130
-
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: 1827
-
Java Add new line in String
Different operating system has a different new line or line separator string:
Date: 2019-08-11 View: 1897
-
Java How to change date format in a String
If Java 8, DateTimeFormatter, else SimpleDateFormat to change the date format in a String.
Date: 2019-08-11 View: 1750


