数组clone

li_ke_2008 2011-08-02 04:20:05
与对象的clone不同,数组用Arrays.copyof方法,另外equals方法用于比较两个集合,且包括encoding也须一样才返回true;
...全文
91 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
li_ke_2008 2011-11-04
http://dlang.group.iteye.com/group/topic/17232
http://hzbook.group.iteye.com/group/wiki/3122-Java
jad:http://ywj-sh110-163-com.iteye.com/blog/732446
rem view :netstat -a -o
java -jar E:/Kill.jar E:/port.bat 39875
回复
li_ke_2008 2011-11-04
set PRUNSRV=%MYPATH%\%oldD%
if "%1%"=="start" goto START
if "%1%"=="stop" goto STOP

goto USAGE
:START
%JAVA_EXE% -cp %LIB% %SERVICE_QUERY% %NAME% installed
if exist %CHECK% (
echo %CAPTION% .
goto END
)
:INSTALL
%JAVA_EXE% -cp %LIB% %SERVICE_QUERY% %NAME% installed
if not exist %CHECK% (
echo %CAPTION% is already installed.
goto END
)
echo Installing %CAPTION%
%PRUNSRV% //IS//%NAME% ^
--Description="%COMMENT%" ^
--DisplayName="%CAPTION%" ^
--JavaHome="%JAVA_HOME%" ^
--Classpath=%LIB% ^
++DependsOn=%2% ^
--Jvm=%JVM% ^
--LogPath=%LOGDIR% ^
--LogPrefix=daemon ^
--LogLevel=Debug ^
--Startup=auto ^
--StartMode=jvm ^
--StartClass=%MAIN% ^
--StartMethod=main ^
--StartParams=start ^
--StartPath=%CD% ^
--StopMode=jvm ^
--StopClass=%MAIN% ^
--StopMethod=main ^
--StopParams=stop ^
--StopPath=%CD%
%JAVA_EXE% -cp %LIB% %SERVICE_QUERY% %NAME% installed
if exist %CHECK% (
echo Failed to install %NAME%
goto END
)
echo Installation of %NAME% is complete
goto END
:END
cd /D %OLD%
回复
li_ke_2008 2011-11-04
mvn clean package install -Dmaven.test.skip=true
@echo off
setlocal
rem 版本
set oldVER=2.0.0.RELEASE
set OLD=%CD%
set SCRIPT_DIR=%~dp0
set MYPATH=%SCRIPT_DIR%\daemon
cd /D %SCRIPT_DIR%\..
set LOGDIR=%CD%\log\old\core
rem 服务名称
set NAME=newDaemon
rem 服务的注释
set COMMENT=Daemon to launch new Application
rem 服务的标题
set CAPTION=aaa new Moniter Service
set JAVA_EXE="%JAVA_HOME%\bin\java"
rem jvm 参数
set JAVA_OPTS=%JAVA_OPTS% -Xms40m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8
rem classpath
set LIB=repository/core/com.aaa.old.daemon-%oldVER%.jar
set LIB=%LIB%;repository/core/com.aaa.old.log-%oldVER%.jar
rem 启动类
set MAIN=com.aaa.old.daemon.Launcher
rem 查询类
set SERVICE_QUERY=com.aaa.old.daemon.ServiceQuery
set JDK_VERSION=com.aaa.old.daemon.JdkVersion
set CHECK=%CD%\temp\bat.tmp
rem jdk 版本
set oldD=oldd
%JAVA_EXE% -cp %LIB% %JDK_VERSION%
if exist %CHECK% (
set oldD=oldd64
)
rem 发现 jre 版本
set JVM="%JAVA_HOME%\bin\server\jvm.dll"
if not exist %JVM% (
set JVM="%JAVA_HOME%\bin\client\jvm.dll"
)
if not exist %JVM% (
set JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
)
if not exist %JVM% (
set JVM="%JAVA_HOME%\jre\bin\server\jvm.dll"
)
if not exist %JVM% (
echo %JVM% not exist
goto END
)
回复
qybao 2011-08-02
LZ想问什么?
回复
相关推荐
发帖
非技术区
创建于2007-09-28

2.3w+

社区成员

Java 非技术区
申请成为版主
帖子事件
创建了帖子
2011-08-02 04:20
社区公告
暂无公告