Jquery .toggleClass() function is used to add or remove one or more classes from each DOM element in the set of matched elements, depending on either the class's presence or the value of the state argument.
This tutorial will help you to find out underline operating system name. System.getProperty("os.name") returns name of the underline operating system name. You can also print all properties associated with JVM.
Jquery provides .filter() function to reduce the set of matching DOM elements. In this tutorial we will learn about jquery .filter() function along with filter( selector ), .filter( function ), .filter( elements ) and .filter( selection ) examples.
Sometimes we need to stop an animation or effects before it finishes. The Jquery .stop() function is used to stop an animation and effects before it get finished. The .stop() function works with different effects, sliding, fading and animations.
This tutorial will help you to identify that file is a file or directory? java.io.File class provides two methods .isFile() and .isDirectory () with the help these two methods you find out if the file is file or a directory.
This file utility method helps you to remove the file extension from file name. Here I am using simple regular expression which will remove the last dot followed by one or more characters of file extension.
Most of the time we required file extension while processing File I/O operation. But in Java don't have any in build File API which will give you file extension. So below written utility method will help you to get the file extension.