java
ixiumu
这个作者很懒,什么都没留下…
展开
-
java 遍历arrayList的四种方法
List list = new ArrayList(); list.add("luojiahui"); list.add("luojiafeng"); //方法1 Iterator it1 = list.iterator(); while(it1.hasNext()){ System转载 2014-05-18 17:11:41 · 654 阅读 · 0 评论 -
java命令行 编译 运行
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; -classpath 类路径 编译 java *.java 运行 class文件 javac -classpath %classpath% 包名.类名 jar文件 java -jar *.jar (MANIFEST.MF Main-Class: te原创 2014-12-25 09:07:02 · 463 阅读 · 0 评论 -
byte数组和String转换
//string 转 byte[] String str = "Hello"; byte[] srtbyte = str.getBytes(); // byte[] 转 string String res = new String(srtbyte); System.out.println(res); //设定编码方式原创 2015-03-15 15:21:52 · 506 阅读 · 0 评论 -
HttpClient
目前最新版本4.4 download:http://hc.apache.org/downloads.cgi doc:http://hc.apache.org/httpcomponents-client-4.4.x/tutorial/html/index.html The Apache HttpComponents™ project is responsible for creat原创 2015-03-16 09:41:52 · 795 阅读 · 0 评论 -
ubuntu jdk
去Oracle官网下载最新jdk,选择ta原创 2014-08-29 15:28:10 · 496 阅读 · 0 评论 -
JNI
JNI——Java Native Interface 新建java工程,使用eclipse package jnitest; public class JniTest { static{ System.loadLibrary("xmjni"); } public native void printHello(); public static void main(St原创 2016-01-02 16:12:48 · 394 阅读 · 0 评论