Skip to content

Category Archives: Java Programs

The foremost tool that strikes is the sort() method to be used for the comparator mechanism of the Collections class which sorts in the decreasing… Read More
There are multiple ways of writing and reading a text file. This is required while dealing with many applications. There are several ways to read… Read More
The @Override annotation is a standard Java annotation that was first introduced in Java 1.5. The @Override annotation denotes that the child class method overrides… Read More
Special Characters like dot(.), hash(#), etc., which have a special meaning to the regular expression need to be escaped to match in the regular expression.… Read More
In order to illustrate the conversion of a text file present in the local directory on a machine to the byte array, we will be… Read More
As we are are well verse with this topic let us put more stress in order to figure out minute differences between them. Here we… Read More
There are multiple ways to change byte array to String in Java, you can either use methods from JDK, or you can use open-source complementary… Read More
Given an enum containing a group of constants, the task is to convert the enum to a String. Methods: We can solve this problem using… Read More
Given a string “str” in Java, the task is to convert this string to float type. Methods: This can be done by three methods as… Read More
There are many ways to convert integer List to ArrayList where in this article we will be discussing out 2 approaches as below: Using concept… Read More
Zhu-Takaoka String Matching Algorithm is a Variant of Boyer Moore Algorithm for Pattern Matching in a String. There is a slight change in the concept… Read More
Depth First Traversal (or Search) for a graph is similar to Depth First Traversal of a tree. The only catch here is, unlike trees, graphs… Read More
String Interpolation is a process in which the placeholder characters are replaced with the variables (or strings in this case) which allow to dynamically or… Read More
Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled… Read More
Given a String, the task is to convert the string into an Array of Strings in Java. It is illustrated in the below illustration which… Read More