Author Archive


How to Take Input From User in Java

Whether you are writing console programs or solving problems in Java, one of the common needs is to take input from the user. For console programs, you need to have access to the command line. Java has a utility class named Scanner which is capable of getting typed input from user. This class can directly […]

5 Must Watch Videos for Java Programmers

One of the ways to improve your Java programming skills and knowledge is to listen to tech talks given by Java experts. I have found immense value in listening to these talks. Following selected videos on Java language cover efficient use of the Java language, tricky areas in Java core libraries, future of Java including […]

How to Find Method Execution Time in Java

Performance is an important technical feature to focus on when you write Java programs. One of the easiest ways to measure performance is to check the time taken by each method. Java provides a utility class System which is capable of returning the number of milliseconds elapsed since 1st January 1970. Using this we can […]

6 Must Read Books for Java Programmers

Java books enable programmers to learn the language and the best practices followed by seasoned programmers. It gives you the confidence that you understand the language and use it correctly in your programming projects. There are a large number of Java books available in the market. In this post, I will give an overview of […]

Date Manipulation Techniques in Java

Manipulating dates is a common requirement in Java programs. Usually you want to add or subtract a fixed number of days, months or years to a given date. In Java, this can be easily achieved using the java.util.Calendar class. Calendar class can also work with java.util.Date. The following program shows how date manipulation can be […]