Source: https://www.btechsmartclass.com/downloads/lab-manuals/Java-Programming-Lab-Manual-R18-JNTUH.pdf