Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
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...