-
regex
Regular expression match group example
This is an example of how to use a regular expression match group. Using a regular expression to group matches of…
Read More » -
regex
Case control example
In this example we shall show you how to handle a case control using a class with a regular expression. To…
Read More » -
regex
List files with regular expression filtering
This is an example of how to list files using regular expression filtering. In order to list Files using regular expressions…
Read More » -
regex
Compile Reg Ex pattern with multiple flags
With this example we shall show you how to compile regular expression to a Pattern with multiple flags. Compiling a regular…
Read More » -
regex
Check if a string matches a Pattern
In this example we shall show you how to check if a String matches a Pattern. To check if a String…
Read More » -
reflection
Get super class of an object
With this example we shall show you how to get the super class of an object. To get the super…
Read More » -
reflection
Get methods return type
This is an example of how to get the return type of a classe’s methods. To get the return type of…
Read More » -
reflection
Invoke Method with reflection
With this example we are going to demonstrate how to invoke a method using reflection. In short, to invoke a…
Read More » -
reflection
Get Fields from an Object
In this example we shall show you how to get the fields of a class represented by an object. To…
Read More » -
synchronized
Synchronization with multiple locks
The basic idea is to use separate locks to guard multiple independent state variables of a class, instead of having…
Read More »