This section demonstrates you to get the maximum size of Preference key and value. You can see in the given example that we have used the fields of class Preferences. The field MAX_KEY_LENGTH provides the maximum length of string for a key and MAX_VALUE_LENGTH provides the maximum length of string for a value.
Here is the code of GetMaximumSize.java
Output will be displayed as:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: January 7, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles