摘要:string的创建 string s = "hello"; jvm先根据内容"hello"查找对象,如果没有找到,则在heap上创建新对象,并将其赋予s1,否则使用已经存在的对象 string s = new string("hello"); jvm直接在heap上创建新的对象,所以在heap中会出现内容相同,地址不同的string对象s......
摘要:出自:淘特网作者:淘特网声明:转载请注明出处。 本文是根据tomcat平台下实现而做,文件目录为: tom_home\webapps\news下:└html└web-inf└classes └com └fileman.class └fileservlet.class └web.xml首页我们先实现文件读取的类:fileman.java//fileman.java 读写文件的一个类package c......
请高手务必帮忙,关于JAVA的一段代码!!!谢谢了
function move(x) {
if (document.all) {
object1.style.pixelleft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};
function makestatic() {
if (document.all) {object1.style.pixeltop=document.body.scrolltop+20}
else {eval(document.object1.top=eval(window.pageyoffset+20));}
settimeout("makestatic()",0);}
<!--
..hl {
background-color : yellow;
cursor:n-resize;
}
..n {
cursor:n-resize;
}
-->
function positionmenu(){
move(-132)
}
if (document.all) {document.write(<div id="object1" style="visibility:hidden;cursor:hand; position : absolute ;left : 0px ;top : 20px ;z-index : 20" onmouseover="move(132)" onmouseout="move(-132)">)}
菜单
document.write(<td align="center" rowspan="100" width="16" bgcolor="#ff6666"><span style="font-size:13px"><p align="center"><font face="arial b...
下一页 摘要:motorola的j2me界面扩展——lwt介绍作者:陈跃峰出自:http://blog.csdn.net/mailbomb lwt(lightweight window toolkit)是motorola公司对midp的javax.microedition.lcdui界面包的一个扩展,可以在motorola系列的手机中象使用midp界面一样来进行使用,解决了midp界面不......