Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Difference of String, StringBuilder and StringBuffer in Java?

Difference of String, StringBuilder and StringBuffer in Java? String 1)String value are stored in dynamic memory (managed heap) and variables of type string keep a reference to an object in heap. 2)The character sequence stored in string...

Use of intern() of string in Java

String.intern() has a great importance in java. We can use String.intern() to deal with String duplication problem in Java. A string is said to be duplicate if it contains the same content as another string but has a different memory location e.g...

Remove some particular character from a String

Sometime, we need to remove or replace some particular character from a String. Below is the method by which we can accomplish this. I am using replaceAll() method of the String. replaceAll() have two parameter as an arguments. First one is t...

How to replace Case-Insensitive chars in a String in Java?

Sometimes we need to replace some characters with some other set of characters. To replace a Case-Insensitive chars from string you can use the below example: package com.demo; public class TestApps { /* *@param args */ ...

How to split a String

Below I have written a code to split a string. Suppose we have a string name imagePath and we are going to split by "/" by using split method in java. String delimiter = "/"; String[] img; if (imagePath.contains("/")) { img = i...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: