if you are learning Java, you know how to print using System.out.println(); However,I know it's tiring to write System.out.println() in your project again and again. Wouldn't it be nice to create your own method to print something easily?
Let's see how we can we use the Java Object class to create a simple print method. All you have to do is type print() to print anything that you want!
The Object class is found in the java.lang package. It is the topmost class of Java. You do not have to import this package in your code. By default all the methods of the Object class is available from any Java classes.