One of the most welcome changes in Java 8 was the introduction of Lambda Expression and Method Reference In java 8.. Method references in java are a special type of lambda expressions. because they’re often used to create simple lambda expressions…
Manual login user by Email Id in Laravel.
This blog is to help you manually login by using a URL with get parameters. As this practice is not secured and can be taken advantage by hackers so use it on your own risk. To make it a bit…
How to merge Collection in Laravel?
To merge two collection col1 and col2 we use merge() method of collection OR We can just pass those collection while declaring the collection Some Example case Sometimes we need to get different collection from same Database Table depending on…
Can we Overload the main() method in Java?
One of the common doubts among Java beginners while learning to overload and overriding is, whether it’s possible to overload main() in Java? Can you overload the main() method in Java? How will JVM find if you change the signature…
Setting Preference Activity In Android Q.
PreferenceFragmentCompat
How to add fragment specific menus in Android
You can show new menus from fragment by onCreateOptionsMenu method First you need to setHasOptionsMenu(true) in onCreateView method as second you have to create menus.xml in res/menu/ folder And also you have to set menu in onCreateOptionsMenu method as If you want to replace menus…
getExternalStoragePublicDirectory is deprecated in Android
The contract between the media provider and applications. Contains definitions for the supported URIs and columns. The media provider provides an indexed collection of media types, such as Audio, Video, and Images, from storage devices. Each collection is organized by…
Lambda Expressions in Java.
Lambda expression in java is a new and important feature of Java which was included in Java SE 8. And, Lambda expression in java also provides a clear and concise way to represent one method interface using an expression. It…
Get a string after a specific substring by length in MySQl and SQL
For MySql Let us assume a Customers table with a CustomerName Column which contain string of Max Length 200. For Sql Server Let us assume a Customers table with a CustomerName Column which contain string of Max Length 200.
How To Capitalize First Letter Of Each Word In Js ?
By using function: “replace()” is a iterative function calling a regex as first parameter and adding callback function as its second parameter we can achieve this. Regular Expression for Every Word in a String ( /\w\S*/g ) And Callback function…