String

Remove Duplicates from String using Java

Removes duplicates from String will remove duplicate characters (if any) from String using Java programming language. For example, let’s say we have a string “jeejava” and we want to remove duplicates from this string. So in this string the duplicate characters are e, j, and a. Therefore after removing duplicate characters we will get the […]

Handling large data writing to Excel using SXSSF Apache POI

Introduction This tutorial will show you an example on handling large data writing to excel using sxssf Apache POI library. having said that we will see here how to write large data set to an Excel file using Apache POI using SXSSF. The theoretical text and concept have been borrowed from http://poi.apache.org/spreadsheet/how-to.html#sxssf SXSSF (package: org.apache.poi.xssf.streaming) […]

Extract Numeric Values from a String in Java

This tutorial will show you how we can extract the first non-breakable numeric values from a string using Java. Create below method in Java class to extract numeric value public static String getFirstContinousNumericFromString(String string) { Pattern pattern = Pattern.compile(“(\\d+\\.+\\d+)|(\\d+)”); Matcher matcher = pattern.matcher(string); matcher.find(); return matcher.group(); }

Append-String Transformer in Mule ESB

What is Mule ESB ? Mule ESB is a lightweight Java-based enterprise service bus (ESB) and integration platform that allows developers to connect applications together quickly and easily, enabling them to exchange data. Mule ESB enables easy integration of existing systems, regardless of the different technologies that the applications use, including JMS, Web Services, JDBC, […]

File-To-String transformer in Mule ESB

What is Mule ESB ? Mule ESB is a lightweight Java-based enterprise service bus (ESB) and integration platform that allows developers to connect applications together quickly and easily, enabling them to exchange data. Mule ESB enables easy integration of existing systems, regardless of the different technologies that the applications use, including JMS, Web Services, JDBC, […]

Verify a string contains only numeric value in Java

Introduction The below example shows how to verify that a string contains only numeric value in Java. String may contain float value, double value etc. This example uses regular expression to check a string contains only numeric values. It makes sure that your string should contain only digits and dot(.).

Scroll to top