How to recursively list all files in a directory and sub-directory in Java

Hello, guys if you are looking for a Java program to recursively list all files in a directory or sub-directory in Java then you have come to the right place. Earlier, I have shared the best Java Programming courses and In this article, I will show you how you can use the SimpleFileVistor class from java.nio package to recursive list all files and directories inside a given directory. The API also provides you control over whether to list only files or directories when you are navigating recursively. This makes it very useful for archiving programs or creating build tools like Maven or any Java program which has to deal with files and directories. 

5 Ways to Find length of String in Java without built-in length() method

On another day, someone asked me, is there a way to find the length of String without using the length() method from java.lang.String class? I didn't ask why, because I know it might have been asked to him on Interviews. Before I explore ways to find the length of String, let's recap what does the length of String means in Java? Well, it's no different than C here, a number of characters in a String including whitespace, newlines are known as length of String. By knowing this, you can think of many approaches to calculating length e.g. getting a char array from String and counting a number of characters or many are by applying some clever tricks.

10 Advanced Spring Framework Courses for Experienced Java Developers

Hello guys, if you are a Java developer and want to learn Spring Framework in-depth and looking for some advanced Spring online courses to learn things like Spring Boot, Spring Cloud, Spring Data JPA, Spring Security, Spring MVC, etc then you have come to the right place. Earlier, I have shared the best courses to learn Spring Boot, Microservices, and Hibernate and JPA and in this article, I am going to share the best and advanced Spring Framework courses for experienced Java developers. There is no doubt that the Spring framework is probably the most important skill for Java developers, but just knowing Spring is also not enough. 

3 Examples to Generate Random Alphanumeric String in Java - UUID Example

Many times we need random alphanumeric String for one or another purpose and Thankfully Java provides a couple of ways to create random Strings which can be numeric, alphanumeric, or simply alphabetic. If you are familiar with Java API to generate random numbers like java.util.Random class and Math.random() method than It's quite easy to create an array with choice of characters like Alphanumeric, numeric, alphabets, special characters, and choose random characters to construct random String. If you like using an open-source library and happen to be using Apache commons-lang then generating an alphanumeric String is just one line of code as shown in the first example in our Java program. 

How View Resolver works in Spring MVC? [InternalResourceViewResolver Example]

Hello guys, if you are wondering what is view resolve in Spring MVC and what role InternalViewResolver class plays in Spring MVC then you have come to the right place. Earlier, I have explained to you how Spring MVC works internally and how it processes HTTP requests coming to your web application. One of the important parts of that processing was resolving views, which is handled by the ViewResolver interface, which is the V part of MVC. They are responsible for returning correct views to the client, both in the Spring MVC application as well as on REST APIs. In this article, you'll learn more about view resolvers in Spring MVC by explaining the InternalResourceViewResolver class. 

Coursera Certification Review - Java Programming & Software Engineering Fundamentals

Hello guys, if you want to learn Java and looking for the best Java courses online then you have come to the right place.  Earlier, I have shared the best Java Programming courses, and today, I am going to review Java Programming and Software Engineer Fundamentals course from Coursera. This is one of the top Java courses from Coursera and more than 180K students have already join this course. This course is offered by Duke University and it also offers a certification after completing all modules of the course and doing the project on the final module. While the social proof is enough to join this course, we'll review this course on different parameters like Instructor quality, course structure, content, etc to help you make an informed decision.