j2me设计论文--手机通讯录内容摘要:
uicontroller = new UIController()。 model = new Model()。 (model)。 } catch (ApplicationException e) { (Error when initial the record Store)。 } } protected void pauseApp() { // TODO Autogenerated method stub } protected void destroyApp(boolean arg0) throws MIDletStateChangeException { // TODO Autogenerated method stub } public UIController getUicontroller() { return uicontroller。 本科课程设计论文 13 } } package。 import .*。 public class Account { private String userName = ,password。 private String mobilePhone =。 private String =。 private String phone =。 public Account(String userName,String mobilePhone,String , String phone) { = userName。 = mobilePhone。 =。 = phone。 } private Account() { } public String getEmail() { return。 } public void setEmail(String ) { =。 } public String getMobilePhone() { return mobilePhone。 } public void setMobilePhone(String mobilePhone) { = mobilePhone。 } public String getPhone() { return phone。 } public void setPhone(String phone) 本科课程设计论文 14 { = phone。 } public String getUserName() { return userName。 } public void setUserName(String userName) { = userName。 } public byte[] serialize() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream()。 DataOutputStream dos = new DataOutputStream(baos)。 (userName)。 (mobilePhone)。 ()。 (phone)。 ()。 ()。 return ()。 } public static Account deserialize(byte[]data)throws IOException { ByteArrayInputStream bais = new ByteArrayInputStream(data)。 DataInputStream dis = new DataInputStream(bais)。 Account account = new Account()。 = ()。 = ()。 = ()。 = ()。 ()。 ()。 return account。 } public static Account deserialize(DataInputStream dis){ Account account=null。 try{ String user=()。 本科课程设计论文 15 String password=()。 // int recid = ()。 account = new Account()。 =user。 = password。 return account。 }catch (Exception e) { // TODO: handle exception } return account。 } public String getPassword() { return password。 } public void setPassword(String password) { = password。 } public static boolean matches(byte[] data,String userName) throws IOException { ByteArrayInputStream bais = new ByteArrayInputStream(data)。 DataInputStream dis = new DataInputStream(bais)。 try { return (()).equals(userName)。 } catch(IOException e) { ()。 return false。 } } } package。 public class ApplicationException extends Exception { private Exception exception。 private int code = 1。 public static final int RECORD_EXIST = 1。 public static final int NO_RECORD = 2。 public ApplicationException(Exception ex) 本科课程设计论文 16 { = ex。 } public ApplicationException(int code) { = code。 } public int getCode() { return code。 } public void setCode(int code) { = code。 } public Exception getException() { return exception。 } public void setException(Exception exception) { = exception。 } } package。 import .*。 public class Index { private String key。 private int recordID。 public Index(String key, int recordID) { = key。 = recordID。 } private Index() { } public String getKey() { return key。 本科课程设计论文 17 } public void setKey(String key) { = key。 } public int getRecordID() { return recordID。 } public void setRecordID(int recordID) { = recordID。 } public byte[] serialize() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream()。 DataOutputStream dos = new DataOutputStream(baos)。 (key)。 (recordID)。 ()。 ()。 return ()。 } public static Index deserialize(byte[] data) throws IOException { ByteArrayInputStream bais = new ByteArrayInputStream(data)。 DataInputStream dis = new DataInputStream(bais)。 Index index = new Index()。 = ()。 = ()。 ()。 ()。 return index。 } public static boolean matches(byte[] data, String key,int type) throws IOException { ByteArrayInputStream bais = new ByteArrayInputStream(data)。 DataInputStream dis = new DataInputStream(bais)。 if(type == 101) { return (()).equals(key)。 本科课程设计论文 18 } else if(type == 102) { return (()).startsWith(key)。 } return false。 } package。 import。 import .*。 import .*。 public class Model { private RecordStore rs = null。 private RecordSt。j2me设计论文--手机通讯录
相关推荐
,检测三相电流,实现对电动机的综合保护。 其二次信号由 DSP 系统进行采样、 运算、处理。 每一路的输出端设有阻容保护装置 F1~ F9,以吸收主电路中的操作过电压,保护电动机。 TV TV TV3 为检测用电压传感器,其二次信号输入 DSP 系统中。 保护、控制 组合开关的控制、保护由控制模块、先导模块、处理模块、调理模块、键盘、液晶显示器等组成,运用了 DSP 数字信号处理、 CAN
设外文翻译西安邮电大学 毕 业 设 计(论 文)外文文献翻译院 (系): 计算机学院 专 业: 计算机科学与技术 班 级: 学生姓名: 导师匈仍逊番疟凉才急兄哆导窄数胸刘俄匈搐蝉范截旁窜战梢坪印耙释玉霖塑佰峦缓傣亏加纹堡残睁襟皂亲控翱翔吁磐匪澳擂狱送胃琉续申画梯愉友鹰 If a scripting language can solve 80 percent of the clientside
++和 Java在面向对象这方面比 VB要强,所以我排除了用 VB做的可能性。 但是 C++为了与 C语言兼容,其是包含了些面向过程的成分; Java除了 C++中非面向过程的部分,其程序编写过程就是设计、实现类, 定义其属性、行为的过程。 还有 Java特有的“沙箱”机制是其安全性的保障,同时它去除了 C++中易造成的错误指针,增加了自动内存管理等措施,保证了 Java程序运行的可靠性。
UE% amp。 qYp@Eh5pDx2zVkumamp。 gTXRm 6X4NGpP$vSTTamp。 ksv*3t nGK8! z89Am YWv*3t nGK8! z89Am YWpazadNuKNamp。 MuWFA5uxY7JnD6YWRr Wwc^vR9CpbK! zn%Mz849Gx^Gj qv^$U*3t nGK8! z89Am YWpazadNuKNamp。
的环流形式 7 7 分类 按温度 ① 冷气团(气团温度低于移经地区气温) ② 暖气团(气团温度高于移经地区气温) 按源地 ① 冰洋气团 ② 极地气团(大陆、海洋) ③ 热带气团(大陆、海洋) ④ 赤道气团 与天气的关系 ① 单一气团控制,天气单调 ② 两种气团交替,天气变化 ③ 两种气团交界地区 ,天气变化最剧烈 对我国的影响 冬季:蒙古、西伯利亚极地气团,天气寒冷干燥;夏季
度汇编 25 资兴 市商务局对外贸易经营者备案登记办理程序 一、 网上填报登记表 在湖南外贸网( )上点击“外贸经营者”图标进入“地外贸易经营者备案登记系统”,分别通过“湖南省对外贸易经营者备案登记入口”和“商务经营者备案入口”在网上直接填报《对外贸易经营者备案登记表》(以下简称《登记表》),样式附后。 对外贸易经营者应按《登记表》要求认真填 写所有事项的信息,并确保所填写内容是完整的