java simpledateformat

Java SimpleDateFormat Example

Sushma Baliza Java, Programming Leave a Comment

In Java SimpleDateFormat article we’ll see how to use java.text.SimpleDateFormat class, which provides methods to format date to string or parse string to date. The SimpleDateFormat is a class which inherits java.text.DateFormat class. Creating a SimpleDateFormat Instance:

The pattern String parameter used for parsing and formatting of dates. The Pattern Examples are given at the end of the article. Related Links: Java …

android sharedpreferences

Android SharedPreferences Example – Android Storage Types Tutorial #1

Vamsi Tallapudi Android, Programming Leave a Comment

Android SharedPreferences provides an easy and efficient way to store data in the form of Key value pairs in Android. Unlike other storage options whose setup is a bit complex, SharedPreferences provides an easy way to read and write data into a file. What are SharedPreferences? SharedPreferences are just key value pairs which are stored in an xml file. If …