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
Setting limit for the no. of words per record in solr while fetching
Fetching records in solr:
Once you have finished with indexing in solr, now you can perform search on your records with the help of queries.
Go to the url:
http://localhost:8983/solr/#/collection/query
There is box with q,&...
Phone number Regex Java
Regex for mobile number validation with prefix of '+'
^[+][0-9]{12,13}$
Regex for mobile number validation with optional '+'
^[+]?[0-9]{10,13}$
Use in Code:-
Pattern.matches("^[+][0-9]{12,13}$",mobilenumber);
Ha...
How to replace whole word with Word Boundaries in Java?
Sometimes we need to replace whole word with the word boundaries in a string. For this we use "\b" regular expression token which is called a word boundary. It usually matches at the start or the end of a word.
Example: You just need to place ...
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
*/
...