标题所描述的功能是简单的,下面的例子也很简单,但是你可以根据自己的需要进行扩充功能,我这里只是抛砖引玉而以,呵呵……,其实你有时间可以自己做一个SQL Server Profiler玩一玩。支持SqlServer2005和SqlServer2008第一步:添加引用:Microsoft.SqlServ Read More
posted @ 2018-01-25 17:19 一种武器 Views(119) Comments(0) Diggs(0)
/***传入一个文件**/private void installApk(File file) { Intent intent = new Intent(); intent.setAction("android.intent.action.VIEW"); //intent.setD... Read More
posted @ 2015-05-19 13:01 一种武器 Views(434) Comments(0) Diggs(1)
直接将jar包拷贝到app/libs下(我使用的是afinal jar包),然后在app下的build.gradle中添加此jar的依赖。dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'c... Read More
posted @ 2015-05-19 12:51 一种武器 Views(340) Comments(1) Diggs(0)
原文:http://blog.csdn.net/shaoxiaoning/article/details/404240871.Java保存的文件名必须与类名一致;2.如果文件中只有一个类,文件名必须与类名一致;3.一个Java文件中只能有一个public类;4.如果文件中不止一个类,文件名必须与pu... Read More
posted @ 2015-02-25 15:42 一种武器 Views(222) Comments(0) Diggs(0)
public static void main(String[] args) { HashMap map = new HashMap(); map.put("张三", "四川"); map.put("李四", "四川"); map.put("王五", "广东"); map.put("... Read More
posted @ 2015-02-06 13:47 一种武器 Views(127) Comments(0) Diggs(0)
int[] arr = {1,2,3,4,5,6,8,5,9}; //常规for循环 for (int i = 0; i < arr.length; i++) { System.out.print(arr[i]+" "); } System.out.println(); //JD... Read More
posted @ 2015-02-06 08:42 一种武器 Views(142) Comments(0) Diggs(0)