In this example you will learn how to use the get method in Java.
Java provides various methods and functions that makes this language easy to learn and use. So just go through the below given example code to see when and how to use get method in Java.
The example is going to show the date details.. including year, date and month etc.. with the use of get method.
Here is the video tutorial of "How to get day month and year from date in Java?":
Code for Java Get Method
Output will be displayed as:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: October 15, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles