Our website loads in split second powered by Schema Theme. Thanks to MyThemeShop

Rename a File in Java

To rename file name, we use  method in file. Call method on old file handle and pass new file handle to the method as parameter. Using method we can also move file from one directory to the other desired directory …


Delete a File in Java

To delete a file in Java, get the file handle to the file that you want to delete. To delete a file in particular directory, Construct File Path to that file, get the file handle to delete the file using …


How to create a file in Java

You can create a file in Java using  Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. return a boolean value : true if the file …


Java8 – Convert List to comma separated String in java

Converting List<String> to comma separated string in java8 is very simple and straight forward, with String join We simply can write String.join(..), pass a delimiter and an Iterable and the new StringJoiner will do the rest. If we are  working with a stream we can write it using Collectors. Here …


java8 – forEach vs forEachOrdered

With Java8 streams, we take the advantage of parallelism on multi core processor. Java8 has introduced forEach() forEachOrdered() on collections to iterate over a stream of elements, however there is a difference between the two methods. Quoting from Javadoc: The …


Learn GOF Design Patterns through Free Ref Cards

Design Patterns provide a generic solution to commonly occurring problems, let it be then software architecture, development issue or just coding work around. With so many resources online for learning GOF Design Patterns,It’s always GOF Patterns Book serves a bible. Refcard provides …


Simply learn Git from official Git video tutorials

Git is a distributed version control system designed for speed, data integrity and support for distributed , non linear work flows. It’s very popular distributed version control system backed by cloud repositories such as GitHub and Bitbucket. Git was initially …