Mar Java Mit Java Blog

How to replace backslashes in java 0

How to replace backslashes in java

The String#replaceAll() interprets the argument as a regular expression. The \ is an escape character in both String and regex. You need to double-escape it for regex: string.replaceAll(“\\\\”, “\\\\\\\\”); But you don’t necessarily need...

How to define spool size in JCS 0

How to define spool size in JCS

JCS is one of the widely used caching solution in the market. It has one feature in which we can specify the maximum number of elements a particular cache can have before it starts...