In this example you will learn that how a put function is used in the program, in this example first time when it initialize it don't have any value but when we give some of the value in it by put() function then it will show the value what it have in its container.
After thoroughly knowing the code you should save the file by "put.java" file name and when after compiling the code you run your program you will get the output given below .
Here is the Output of the Example :
Posted on: February 27, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles