需要测试的类Person:
package cn.edu.lstc.junit;
public class Person {
public void run() {
System.out.println("run...");
}
public void eat() {
System.out.println("eat...");
}
public String a() ...
分类:
其他好文 时间:
2015-04-04 09:12:11
阅读次数:
110
参考源码版本:Android-4.4.4_r2
提示:大部分分析直接注释在代码内。
dvmInterpret函数中调用了dvmInterpretPortable函数对方法的字节码进行解释执行,dvmInterpret在dalvik/vm/interp/Interp.cpp文件中。
dvmInterpretPortable函数在dalvik/vm/mterp/out/Int...
分类:
其他好文 时间:
2015-04-04 08:02:46
阅读次数:
264
1、首先介绍write()和print()方法的区别:(1)、write():仅支持输出字符类型数据,字符、字符数组、字符串等(2)、print():可以将各种类型(包括Object)的数据通过默认编码转换成bytes字节形式,这些字节都通过write(int c)方法被输出2、介绍response...
分类:
其他好文 时间:
2015-04-03 22:21:13
阅读次数:
168
写了个Test试了下Java的StringBuilder类代码如下:importjava.util.Scanner;publicclassStringBuilder1{publicstaticvoidmain(String[]args){Scannerin=newScanner(System.in);System.out.println("开始用许多小段的字符串构建一个字符串:");System.out.println("首先构建一个..
分类:
编程语言 时间:
2015-04-03 19:41:47
阅读次数:
266
对于tomcat的日志管理,部署Tomcat后,运行久了,catalina.out文件会越来越大,对系统的稳定造成了一定的影响。1可以修改conf/logging.properties日志配置文件来屏蔽掉这部分的日志信息。vim/data/ifengsite/java/tomcat/conf/logging.properties将level级别设置成WARNING就可..
分类:
系统相关 时间:
2015-04-03 19:38:36
阅读次数:
214
Delphi的参数可以分为:默认参数(传值)、var(传址)、out(输出)、const(常数)四类 可以对比C/C++的相关知识,类比学习。 1.默认参数是传值,不会被改变,例子function MyFun(x : Integer) : Integer;begin Inc(x); ...
Problem Description
As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railway.
Input
The input contains sever...
分类:
其他好文 时间:
2015-04-03 17:22:48
阅读次数:
145
1.继承Thread public class TestThread extends Thread{ public void run(){ System.out.println(Thread.currentThread().getName()); } pub...
分类:
编程语言 时间:
2015-04-03 16:56:04
阅读次数:
174
1.在线安装mod_sslyum -y install mod_ssl查看openssl是否安装成功rpm -qa |grep openssl2.建立服务器密钥openssl genrsa -out server.key 10243.建立服务器公钥openssl req -new -key serv...
分类:
Web程序 时间:
2015-04-03 15:12:36
阅读次数:
164
PrintStream ps; try { ps = new PrintStream("D:\\role.txt"); System.setOut(ps); } catch (FileNotFoundException e) { e.printStackTrace(); }
分类:
其他好文 时间:
2015-04-03 13:14:07
阅读次数:
138