How to Split String in Java with Example

Here you will learn how to split string in java. We can split string in Java using split() method of java.lang.String class. It takes a regular expression as an argument and returns an array of strings. Syntax:

  Split String in Java Example Below program will split the string by space.

  Output I Love Java Programming   There are few special characters like ., ?, |, +, etc. and some escape characters like \n, \t, \b, etc.

Read more

Convert Image to Base64 String or Base64 String to Image in Java

In this tutorial you will learn how to convert or encode image to Base64 string and convert or decode Base64 string to image in Java.   What is Base64? Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.     Why we need to convert image to Base64 string? Let’s consider some real life scenarios. What we will do if we want to store

Read more
1 2