各位大侠:40分求解一个小问题,望各位救我,十分感谢!
class ArrayListTest
{
public static void main(String args[])
{
ArrayList al=new ArrayList();
al.add("a");
al.add("b");
System.out.println(al);
}
}
javac编译报警告: [unchecked] 对作为普通类型 java.util.ArrayList 的成员的 add(E) 的调用未经检查, al.add(“a”);
相关推荐
质量培训钟大侠.pptx
质量培训钟大侠.pptx
MK检验程序出错有请大侠-MK.m
MK检验程序出错有请大侠-MK.m % Time Series Trend Detection Tests % % [ z, sl, lcl, ucl ] = trend % % where z = Mann-Kendall Statistic % sl = Sen's Slope Estimate % lcl = Lower Confidence Limit of sl % ucl = Upper Confidence Limit of sl % y = Time Series of Data % dt = Time Interval of Data % % Bob Newell, February 1996 % %-------------------------------------------------- % load unnamed1.mat; y=unnamed1; function [ z, sl, lcl, ucl ] = trendMK % n = length; %-------------------------------------------------- % Mann-Kendall Test for N > 40 % disp; if n < 41, disp; end; % calculate statistic s = 0; for k = 1:n-1, for j = k 1:n, s = s sign - y ); end; end; % variance v = * ) / 18; % test statistic if s == 0, z = 0; elseif s > 0, z = / sqrt; else z = / sqrt; end; % should calculate Normal value here nor = 1.96; % results disp ] ); disp ) ] ); disp ] ); if abs < nor, disp; z = 0; elseif z > 0, disp; else disp; end; %---------------------------------------------------- % disp; % calculate slopes ndash = n * / 2; s = zeros; i = 1; for k = 1:n-1, for j = k 1:n, s = - y ) / / dt; i = i 1; end; end; % the estimate sl = median; disp ] ); % variance v = * ) / 18; m1 = fix ) / 2 ); m2 = fix ) / 2 ); s = sort; lcl = s; ucl = s; disp( [ ' Lower Confidence Limit = ' ... num2str ] ); disp( [ ' Upper Confidence Limit = ' ... num2str ] ); %---------------------------------------------------- % the end
dotNetFx40_Full_x86_x64AB
dotNetFx40_Full_x86_x64AB
FTP FileZilla说明
FileZilla FTP 详细说明 用FileZilla Server开FTP:看图入门 (2006-09-25 12:40:11)转载▼ 分类: 网络相关 重要更新:2007年12月,为本文改录了更直观的flash视频,请见本文最末段。 0. 关于续传和乱码的说明 问:听说FileZilla不能续传?答:那是以前,现在的新版可以了。 问:听说FileZilla处理中文文件有乱码。答:是有此现象,但这不是bug,原因见下,解决办法有3。一是,如果你尊重标准,可以同时使用FileZilla的server和client。二是,与现实妥协,用filezilla server的非utf-8版本,如V0.9.14,点击此处下载。三是,与现实妥协,用Tommy大侠提供的补丁http://sourceforge.net/project/showfiles.php?group_id=171626&package_id=196135&release_id=429471 原因:作者自FileZilla Server V0.9.15开始(及相应的client版本),按RFC 2610 http://www.faqs.org/rfcs/rfc2640.html 规定的方式,默认使用UTF-8。而其他服务器和客户端并不用此标准。即,server和client对话时,Filezilla产品一上来就用UTF-8,除非对方大喊一声UTF8 OFF;而其他的ftp产品则多数先用本地编码对话,除非对方说一声UTF8 ON。所以,Filezilla和其他软件对话时,就出现了一个讲UTF8,一个用本地编码,而大家都未沟通UTF8到底是on还是off,所以:乱码! 参见:http://blog.sina.com.cn/u/46dac66f010005lz 1. 为什么开FTP? 由于FTP是专门的文件传输协议,所以用它来上传下载文件最可靠,并且权限、速度也可以灵活设置。 我开FTP主要是偶尔与别人共享文件,或远程处理另一台计算机上的文件。
60个中国优秀电子技术网站
这是我精心收集N久了的东东,非常有用,一用便知。适用于所有电子、通信、自动化等领域的研发人员。


Java SE
