How to use and understand Binary Search on Java SE

Java is a Platform to create robust, secure and scalable stand-alone and enterprise web applications. It has a lot of classes and resources that make easy to develop many functionalities in systems. One of the most interesting parts of the Java API (Application Programming interface) is work with collections and generics. Basically, Java has three…

The easiest way to check if an element exists with jQuery

When you need to know if an element exists in the DOM (Document Object Model), only uses this small code: <script type=”text/javascript”> (function($){ $(document).on(‘ready’, function(){ if( $(“element”).length ){ // Do something 🙂 } }); })(jQuery); </script> The length property returns the number of elements that match with our selector. For example, imagine that you have the…