Compress String with Run Length Encoding in Java

In this Java example, we’re gonna know how to compress String in Java with Run Length Encoding (RLE) method.

Related Posts:
Java Regular Expression Overview – Syntax
Java Regular Expression to extract data from a Text
Java Regular Expression to mask information from a Text

[Continue reading…] “Compress String with Run Length Encoding in Java”

Jackson JSON – Rename Properties with @JsonProperty, @JsonSetter and @JsonGetter example

In this tutorial, we’re gonna look at ways to rename Properties of a Class using @JsonProperty, @JsonSetter and @JsonGetter.

[Continue reading…] “Jackson JSON – Rename Properties with @JsonProperty, @JsonSetter and @JsonGetter example”

How to write Text File in Java by BufferedWriter

Java provides a BufferedWriter for writting content to File with high performance when performing with large number of write action. Because BufferedWriter decreases I/O interaction by using internal buffer to write data into File.
Related posts:
1. Java Read Text File by BufferedReader, Java 7,Java 8
2. How to delete non-empty Folder in Java

[Continue reading…] “How to write Text File in Java by BufferedWriter”

Java recursion – Towers Of Hanoi

Earlier in the tutorial Solution for find the N-th Fibonacci number, we have already known the methods that can be easily implemented with recursion and iteration. Today we will see a solution which demonstrates the power of recursion, and the iterative solution may not be a clearer method: Towers of Hanoi.

[Continue reading…] “Java recursion – Towers Of Hanoi”

Java Regular Expression to mask information from a Text

This tutorial shows you how to mask information from a Text using Regular expression.

Related articles:
Java Regular Expression Overview – Syntax
Java Regular Expression to extract data from a Text

[Continue reading…] “Java Regular Expression to mask information from a Text”

How to delete non-empty Folder in Java

Java supports a function: java.io.File.delete() to delete a File or an empty directory. But with non-empty folders, we need to implement function to delete them. In the tutorial, JavaSampleApproach will show you how to develop a recursive funtion to delete non-empty Folder.

[Continue reading…] “How to delete non-empty Folder in Java”

Java 8 – How to convert List to Map & Map to List

In the tutorial, JavaSampleApproach will guide you How to convert List to Map (Map to List) with Java 8.

Related Posts:
1. Java 8 – Lambda Expressions
2. Java 8 – Functional Interfaces
3. Java 8 – Method References

[Continue reading…] “Java 8 – How to convert List to Map & Map to List”