-
急 下面的连接oracle的程序错在那里解决思路
急下面的连接oracle的程序错在那里publicclassTest{ Connectioncon=null; Statementstmt=null; ResultSetrs=null; Stringurl="jdbc:oracle:thin:@192.168.0.89:1521:orcl"; Stringuid="test1"; Stringpwd=&qu...
94
热度 -
JSF报这个错,小弟我该怎么办
JSF报这个错,我该怎么处理?Thecontentofelementtype"faces-config"mustmatch"(application|factory|component|converter|managed-bean|navigation-rule|referenced-bean|render-kit|lifecycle|validator)*"...
162
热度 -
关于二分查找的有关问题
关于二分查找的问题importjava.util.Arrays;publicclassArraySearch{ publicstaticintsearch(int[]a,intvalue) { Arrays.sort(a); intindex=0; intindexL=0; intindexR=a.length-1; while(indexL!=indexR) { index=(i...
10121
热度 -
为啥小弟我这个线程有关问题乱码
为啥我这个线程问题乱码?publicclassThreadTest{ publicstaticvoidmain(String[]args) { Resourceres=newResource(); newThread(newPro(res)).start(); newThread(newCon(res)).start(); }}classResource{ privateStringname...
2359
热度 -
解决不了小弟我会死不瞑目!
解决不了我会死不瞑目!!!!publicclassThreadTest{ publicstaticvoidmain(String[]args) { Resourceres=newResource(); Proaa=newPro(res); Conbb=newCon(res); newThread(aa).start(); newThread(bb).start(); }}classRes...
6802
热度 -
C#(winform)程序Demo,要求用线程池实现SOCKET通讯,有服务端和客户端。
求一个C#(winform)程序Demo,要求用线程池实现SOCKET通讯,有服务端和客户端。在线等。。求一个C#(winform)程序Demo,要求用线程池实现SOCKET通讯,有服务端和客户端。在线等。。各位大侠来解啊!!!color='#e78608'>------解决方案--------------------------------------------------------服务端C...
7453
热度 -
java 线程里面,该如何解决
java线程里面classtthread{publicstaticvoidmain(String[]args){newTestThread().run();//start();while(true){System.out.println("main()"+Thread.currentThread().getName());}}}classTestThread//extendsT...
4950
热度 -
java socket io解决方案
javasocketio代码:Socketclient=创建实例;InputStreamis=client.getInputStream();DataInputStreamdis=newDataInputStream(is);ByteArrayOutputStreambaos=newByteArrayOutputStream();byte[]buf=newbyte[1024];intlen=-1;...
9398
热度 -
内存溢出的有关问题
内存溢出的问题内存大小有10M,请写出让内存溢出的方法?color='#e78608'>------解决方案--------------------------------------------------------forexampleJavacodeList<int[]>list=newArrayList<int[]>();while(true){list.add(n...
10354
热度 -
rs.next替0
rs.next为0JavacodepublicList<Record>querryByID(intid)throwsException{list=newArrayList<Record>();try{sql="SELECTcarno,owner,dname,reason,dateFROMrecord,departWHEREdepart.did=record.dep...
8518
热度 -
批量安插测试数据sql
批量插入测试数据sqlDECLAREiINT;BEGINi:=1;WHILE(i<100)LOOPi:=i+1;beginINSERTINTOtest1(ID,name,remark)VALUES(i,'姓名'||i,'remark'||i);commit;exceptionwhenothersthenrollback;end;ENDLOOP;END;
7
热度 -
Android 中文乱码有关问题
Android中文乱码问题EncodingUtils.getString(data.getBytes("GB2312"),"UTF-8");?如果直接getBytes()的话是以iso88590-1编码获取字节。????URLmyFileUrl=null;myFileUrl=newURL(url);HttpURLConnectionconn;conn=(HttpURLConnection)myFi...
61
热度 -
mysql_fetch_array() expects parameter 一 to be resource
mysql_fetch_array()expectsparameter1toberesource<?php$host="localhost";$user="root";$password="123456";$connection=mysqli_connect($host,$user,$password);if(!$connection){ exit('连接mysql数据库失败!');}$db...
394
热度 -
eclipse-rcp-ganymede-3.4终于下载到了,但是编译出现个有关问题
eclipse-rcp-ganymede-3.4终于下载到了,但是编译出现个问题BUILDFAILED/home/oscar/eclipse-3.4-rcp/plugins/org.eclipse.pde.build_3.4.0.v20080604/scripts/build.xml:24:Thefollowingerroroccurredwhileexecutingthisline:/home/...
64
热度 -
循环中间加入字符的有关问题
循环中间加入字符的问题我从数据库中去读while($down=mysql_fetch_array($downser)){$kb_data_glay.=$down[goods_sn].'$'.$down[goods_name];}数据两条以上时中间需要加入‘,’如果直接写$kb_data_glay.=$down[goods_sn].'$'.$down[goods_name]."','";这样最后一条...
204
热度 -
PHP定时施行
PHP定时执行ignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行.set_time_limit(0);//通过set_time_limit(0)可以让程序无限制的执行下去$interval=60*30;//每隔半小时运行do{ //这里是你要执行的代码 sleep($interval);//等待5分钟}while(true);?
25
热度 -
PHP数三退1
PHP数3退1<?php$sum=10;for($i=0;$i<$sum;$i++){$arr[$i]=true;}$count=count($arr);$io=0;$index=0;while($count>1){if($arr[$index]==true){$io++;if($io==3){$count--;$io=0;$arr[$index]=false;}}$index+...
75
热度 -
怎么获得ZIP文件中压缩文件的个数
如何获得ZIP文件中压缩文件的个数?在PHP中,如何获得ZIP文件中压缩文件的个数?color='#e78608'>------解决方案--------------------这样写PHPcode$zip=zip_open('zip文件名');$n=0;while($rs=zip_read($zip)){$f=zip_entry_name($rs);//取得文件名if(substr($f,-1)!...
66
热度 -
pb run函数解决思路
pbrun函数ls_run=ls_oraclehome+"\BIN\exp.exe"ulongll_handle//循环至窗口打开DoWhilell_handle=0ll_handle=FindWindowA(null,ls_run)yield()loop//等待窗口关闭DoWhileisWindow(ll_handle)Yield()Loop这段代码是判断导入窗口有没有执行完...
163
热度 -
运作JS代码。有加alert就能运行成功,没加alert就报错
运行JS代码。有加alert就能运行成功,没加alert就报错如图不加alert就会报错。我的代码是用JS获取SP文档库的文件夹目录。用while循环获取文件夹的名称,然后根据文件夹的名称作为路径然后调用另一个方法,获取该文件夹的子目录。也就是while嵌套while可是一运行就会报集合尚未初始化的错误。调试了一下发现第二个方法只进行到一半然后就跳出去继续第一个方法的while循环,然而加了ale...
347
热度