Short Notes

How to replace whole word with Word Boundaries in Java?

how to replace a word in a sentence in java

How to replace a word in a sentence in java If you want to replace the whole word with the word boundaries in a string. For this, we use "\b" regular expression token which is called a word boundary....

Arrange list items using drag and drop jquery

Reorder list items using drag and drop jquery

Hello, Today I am going to show you one amazing jquery example for Arrange list items using drag and drop jquery. DragonflyJS is a tiny vanilla JavaScript library that enables sorting (dragging and dr...

Case-insensitive replaceAll in Java

How to replace case-insensitive literal substrings in Java

How to replace case insensitive substrings in Java. Normally we replace string by any character or any special character or whatever we want, but sometimes we want to replace a word in the whole strin...

Refresh a fragment list from activity

Call method of fragment from activity

If you want to call any method of Fragment from your activity then you need to implement INTERFACE. So now I am going to introduce Interface example to Refresh a fragment list from an activity of all ...


Explode string by last occurrence and get first part

Explode and Implode string in php

Some of the cases we need to split any string or it may be my URL to split. Now I am explaining to you, how to explode the string by the last occurrence at getting the first part of the string in a si...

Passing data to Activity and Fragment in Android

Send value to another activity

Sometimes we need to send some valuable data to another activity or fragment, So, when passing data to an activity or a fragment in Android, the Bundle is used to contain the data and ship it to the a...

How do I programmatically 'restart' an Android app

Android restart app programmatically

Sometimes we need to restart our Android app between the code execution, In that case, we have to use some set of code to perform this action. Now we will learn How do I programmatically restart an An...

Exception handling in php

Different error handling methods

Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception. PHP has an exception model simila...


Top