This is a simple J2ME form example, that is going to show the current date and time on the screen. Like core Java J2ME too use the same java.util package to show the current date as well as current time on the screen. In this Midlet we have set the current date and time as date & time. That's why it is going to show you current date and time, every time you runs the application.
The output of the application will look like as below given image..

First of all in this image you can see that we have created a form called Date & Time and set the current time and date as Item.
Source Code of DateAndTime.java
import java.util.*;
|
|
Recommend the tutorial |
Ask Questions? Discuss: J2ME Current Date And Time View All Comments
Post your Comment