This section explores you, how
to retrieve the fields of the class by using
the getFields() method. For this we are taking an example that
provides the use of the getFields() method in detailed way.
Create a class "Ffield" and create an object of this class and assign it the reference of java.util.Integer.class class. Now retrieve the class fields by using the getFields() method.
Here is the code of the Example :
Here is the output of the Example :
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 28, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles