Short Notes

How To Reverse An ArrayList In Java

Reverse an ArrayList in Java by creating a copy

In this post, we will see how to reverse an ArrayList in Java by creating a copy of it. In reverse order without altering the ordering of elements in the original list. ArrayList is nothing but a dy...

Remove a specific item from an array in PHP

Remove any word from your array

Some ask for a more-specific post about removing items from your code, here’s an easy way to remove a specific element from a PHP array by key instead of index. function my_remove_array_item( $...

CSS underline animation left to right

Draw animated underline in your html text

Hmmm, Let's do it by some steps. These are CSS steps to run your underline from left to right. This is so simple, you just need to add your @keyframes in the stylesheet. @keyframes border-dance { ...

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...


Top