1,105,581 Community Members

Help! with creating a J2ME program using the http connectivity interface

Member Avatar
MRA91
Newbie Poster
1 post since Dec 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

So this is what I have to do using the http connectivity interface:

1.Creating two threads – one for communication (receiving and sending) and the other (main) thread will be for interaction with the user.

2.The main thread will make use of three midlet forms. The first form will ask for web page address (URL) and separately for a delimiter which will separate the words in the URL document, the third form will display the ratio of all symbols on the page and the number of occurrences of the delimiter specified

3.The second thread should perform http connectivity to the WWW, utilise the web page address supplied and connect to the appropriate web page and read its content, count all symbols on the chosen page, count the number of occurrences of the delimiter given as user input on the same form as the web page address, calculate the ratio between the two and pass this information to the first thread to display.


I have many questions but my main concerns are:

1. How to communicate using HTTP interface within a thread

2. What is a delimiter in the context above and how should it be implemented

I've been thrown in at the deep end with little programming experience with this assignment. If anyone can share a similar example or answer my concerns I'd be more than happy.

Thanks in advance.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article