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 :
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.