j2me的需求 请高手帮忙分析一下 有点急..

问题描述

WriteaJ2ME(javamicro-edition)codeprogramusingthehttpconnectivityinterfaceasdescribedinthejavaspecificationtodeliverthefollowingfunctionality:用J2MEjavamicro-edition编写一个程序,这个程序需要使用httpconnectivityinterface去完成下列功能。Creatingtwothreads–oneforcommunication(receivingandsending)andtheother(main)threadwillbeforcommunicationwiththeuser.建立2个线程,一个是用于通讯(接收和发射)和一个(main)线程用于和使用者的通讯。Themainthreadwillmakeuseoftwo(threewiththegaugeform)midletforms.Thefirstformwillaskforwebpageaddressandakeyword,thesecondformwilldisplaythenumberoftimesthekeywordappearsonthewebpage.主线程用2个midletform。第一个form:问网页地址和关键字。第2个form是显示网页上关键字的出现次数ThesecondthreadshouldperformhttpconnectivitytotheWWW,connecttotheappropriatewebpageandreaditscontent,counttheoccurrencesofthekeywordandpassthisinformationtothefirstthread.第2个线程需要是能够连接上网页并且阅读并计算关键字的出现率,之后反馈回主线程。Usegaugecomponenttoshowtheuserthattheprogramisbusyreadingfromtheserverforadditionalmarks.使用gaugecomponent去告诉使用者程序读取中Explanation:YoucanusetheMobApp1.zipfilesuppliedasastarterprojectforyourapplication.用MobApp1.zipfile里面的程序开始编写。Youneedtosubmitprintedpapercopyofthedocumentationthroughtheadminoffice.Writeconciseexplanation(2-3pages),printandattachtheJ2MEcode(onlythefilesthatyouhavemodified).--------------------------------------------------------------------------------Hotmail:TrustedemailwithpowerfulSPAMprotection.Signupnow.--------------------------------------------------------------------------------Hotmail:PowerfulFreeemailwithsecuritybyMicrosoft.Getitnow.--------------------------------------------------------------------------------Hotmail:TrustedemailwithpowerfulSPAMprotection.Signupnow.

解决方案

解决方案二:
该回复于2010-05-18 16:22:01被版主删除
解决方案三:
就是个涉及网络连接处理的小程序吧主线程对某个数据进行监听并且也可以发送数据,像个简易的IM请求一个指定的网址,,这个网址是返回某指定字符串出现的次数,要么服务端做计算,然后返回结果给客户端,要么客户端直接把所有数据拿下来,然后计算某字符串出现的次数不知道杂分析了。。。
解决方案四:
谢谢楼上两位了希望还有高手帮忙分析一下
解决方案五:
再追加40分急啊
解决方案六:
使用j2me的http通信,获取数据,进行处理。一个主线程,一个http通信线程。拿到数据,处理就可以了。至于楼主的需求,就要自己来处理了。支持下。
解决方案七:
具体点吧我对J2me不太了解
解决方案八:
J2ME初学者,帮忙顶吧
解决方案九:
帮顶。。。。。
解决方案十:
初学者,帮顶!
解决方案十一:
我也初学顶
解决方案十二:
帮顶学习

时间: 2024-07-28 23:25:25

j2me的需求 请高手帮忙分析一下 有点急..的相关文章

系统上传图片提示写文件失败,可以读取查看图片。请高手帮忙分析原因。

问题描述 系统是用2台服务器做的was集群,其中有一台服务器上的应用会不间断的会出现上传图片失败,写文件不行.但是系统可以读取查看图片.这个现象出现大概持续10分钟左右,自动恢复,又可以上传图片了.服务器配置也没改过,以前也没出现过这样的问题,最近一直出现这样的问题.请高手帮忙分析下原因,或者遇到过类似情况的朋友提供下解决方案,不胜感激.出现错误日志如下:com.ibm.wsspi.webcontainer.ClosedConnectionException:OutputStreamencoun

多线程 线程同步-多线程同步问题,请高手帮忙分析一下原因

问题描述 多线程同步问题,请高手帮忙分析一下原因 先上代码 public class Banck { private Double[] accounts; public Banck(int n,Double inintPrice) { accounts= new Double[n]; for(int i=0;i<n;i++){ accounts[i]=inintPrice; } } public void transfer(Integer from,Integer to,Double mouny

weblogic myserver日志,请高手帮忙分析!

问题描述 解决方案二:#<2010-7-6下午15时25分19秒CST><Debug><SecurityDebug><rewin-38a9fdba6><myserver><ExecuteThread:'9'forqueue:'weblogic.kernel.Default'><<anonymous>><BEA1-08E46779D4FD><000000><DefaultAuthor

关于WebService中数据库事务的奇怪问题,请高手帮忙解决

问题描述 问题:用WebService实现了一个方法,同时向表A.B插入记录,并启动了事务,调试该方法时当执行向A表中插入了记录语句后终止调试(即:退出程序),发现已经向A表插入数据成功,而程序并没有执行Commit和rollback方法,当将同样的代码拷贝到Windows桌面程序中调式时,如果不执行Commit方法而终止程序执行并不会插入记录成功,如果是这样我的应用程序突然断电,岂不是不能保证数据的完整性,代码如下:[WebMethod]publicvoidTestConnection(){S

websphere6.1下部署应用CPU占用率过高问题,在线等,请高手帮忙。

问题描述 在websphere6.1下部署应用,CPU占用率一直在70%以上.想使用JAVAthreaddump看一下,但是使用kill-3<PID>之后没反应啊..如果有dump日志生成的话会生成在哪里?求高手帮忙看看,急. 解决方案 解决方案二:或者有其他方法能查到是哪个类的方法占用CPU过高也可以.解决方案三:内存要看JAVA-CORE文件,并结合WAS日志察看解决方案四:引用2楼mcgrady0314的回复: 内存要看JAVA-CORE文件,并结合WAS日志察看 感觉java-core

xmn-运行Java程序时,JVM参数没有生效,请高手帮忙看看。

问题描述 运行Java程序时,JVM参数没有生效,请高手帮忙看看. 小弟在学习GC的过程中,遇到JVM参数未生效的问题,一时不知道怎么解决,请路过大神帮帮忙指点指点,小弟谢过! 运行环境为:Win7 64bit, 4 core. 1,程序如下 public class PSGCDirectOldDemo { /** * @para args * @throws InterruptedException */ public static void main(String[] args) throw

java 环境变量设置-错误: 程序包net.mindview不存在?能否通过设置环境变量来解决?请各位帮忙分析,谢谢

问题描述 错误: 程序包net.mindview不存在?能否通过设置环境变量来解决?请各位帮忙分析,谢谢 //: initialization/Flower.java // Calling constructors with "this" import static net.mindview.util.Print.*; public class Flower { int petalCount = 0; String s = "initial value"; Flow

线程-VC6 写windows服务问题,请高手帮忙指点一下

问题描述 VC6 写windows服务问题,请高手帮忙指点一下 UINT _MainThread(LPVOID lparam)//主线程 { cout<<"_MainThread Start!"< CString dspmsg; UINT timeID1 = 0; if (!m_pFSockServer->Create(gListenPort) ) { exitService(GetError(GetLastError())); return -1; } if

下面java代码:static Value3 v1, v2; 该怎么理解?请各位帮忙分析下。谢谢

问题描述 下面java代码:static Value3 v1, v2; 该怎么理解?请各位帮忙分析下.谢谢 class Value3 { static int c = 0; Value3() { c = 15; } Value3(int i) { c = i; } static void inc() { c++; } } public class Count { public static void prt(String s) { System.out.println(s); } Value3