
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 · 681 阅读 · 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.MFMain-Class: te原创 2014-12-25 09:07:02 · 509 阅读 · 0 评论 -
byte数组和String转换
//string 转 byte[]String str = "Hello";byte[] srtbyte = str.getBytes();// byte[] 转 stringString res = new String(srtbyte);System.out.println(res);//设定编码方式原创 2015-03-15 15:21:52 · 561 阅读 · 0 评论 -
HttpClient
目前最新版本4.4download:http://hc.apache.org/downloads.cgidoc:http://hc.apache.org/httpcomponents-client-4.4.x/tutorial/html/index.htmlThe Apache HttpComponents™ project is responsible for creat原创 2015-03-16 09:41:52 · 852 阅读 · 0 评论 -
ubuntu jdk
去Oracle官网下载最新jdk,选择ta原创 2014-08-29 15:28:10 · 529 阅读 · 0 评论 -
JNI
JNI——Java Native Interface新建java工程,使用eclipsepackage jnitest;public class JniTest { static{ System.loadLibrary("xmjni"); } public native void printHello(); public static void main(St原创 2016-01-02 16:12:48 · 445 阅读 · 0 评论