面向对象编程有三个特征,即封装、继承和多态,学习多态必须了解向上转型和向下转型。一、向上转型:将子类对象赋值给父类的引用动物 a=new
狗();//这就为向上转型向上转型都会成功,是安全的。 就像说狗是动物没问题。语法:a是引用变量,指向了d对象class Test{ public
stat...
分类:
编程语言 时间:
2014-05-08 11:50:41
阅读次数:
381
1. 数组的引用传递public class TestArray { public static
void changeAry1(int[] ary){ int[] ary1 = {9,9,9}; ary = ary1; } public stat...
分类:
编程语言 时间:
2014-05-08 09:21:18
阅读次数:
370
[root@mailActivity]#find/opt/xyrpg/rpgserver_s1/XMLData/Activity/-typef-execmd5sum{}\;|sed‘s/rpgserver_s1/rpgserver_s2/‘|md5sum-c
/opt/xyrpg/rpgserver_s2/XMLData/Activity/ActivityCondition.xml:FAILED
/opt/xyrpg/rpgserver_s2/XMLData/Activity/NewServerActivit..
分类:
其他好文 时间:
2014-05-07 22:25:09
阅读次数:
522
ftp创建与密码破解ftp创建1.打开linux服务器,查看并修改物理地址和ip地址,2.然后开始配置linux,输入命令cd/media/unt/dev/cdrom/media/cdrom/3.cdcdromcdCentOS/(注意大小写)4.find/media/cdrom/CentOS/-name*vsftpd*5.rpm–ivh/media/cdrom/CentOS/vsftpd-2.0.5-10.e15...
分类:
其他好文 时间:
2014-05-07 21:54:51
阅读次数:
527
Given n points on a 2D plane, find the maximum
number of points that lie on the same straight line. 解题想法:
其实判断一个直线上最好的方法是判断斜率。如果在同一直线上,那么直线上一点与其他点的斜率相...
分类:
其他好文 时间:
2014-05-07 21:13:02
阅读次数:
323
使用findByPk()根据数据表主键查询的是对象,不需要使用foreach()循环出来但是使用findall()和find()查询的是对象类型的数组需要使用foreach()循环出来=======================================
public function...
分类:
其他好文 时间:
2014-05-07 20:32:35
阅读次数:
565
题目链接 Find the contiguous subarray within an array
(containing at least one number) which has the largest sum. For example, given
the array [?2,1,?3,4,...
分类:
其他好文 时间:
2014-05-07 16:42:42
阅读次数:
287
检测管理员上线就注销自已:12345@echo off:checkchoice /C YN
/T 10 /D Yquser find "#16" && del xx.bat logoffgoto check每次运行这个 bat
的时候先quser 一下,看当前的会话id 是多少,然后加1 每连接.....
分类:
其他好文 时间:
2014-05-07 12:39:37
阅读次数:
282
find the most comfortable road
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3369 Accepted Submission(s): 1437
Problem Descriptio...
分类:
其他好文 时间:
2014-05-07 12:18:52
阅读次数:
306
Sum It UpTime Limit:1000MSMemory Limit:10000KTotal
Submissions:5684Accepted:2894DescriptionGiven a specified total t and a list of
n integers, find al...
分类:
其他好文 时间:
2014-05-07 10:45:02
阅读次数:
388