码迷,mamicode.com
首页 >  
搜索关键字:try catch    ( 15901个结果
android 状态栏操作
最近太忙了。好长时间没动博客,把原来的东西拿出来都重新温习下。 private void collapseStatusBar() { int currentApiVersion = android.os.Build.VERSION.SDK_INT; try { Object service = getSystemService("s...
分类:移动开发   时间:2014-08-14 14:14:48    阅读次数:192
Understanding the Space Used by ZFS -- (转)
Understanding the Space Used by ZFSBy Brian Leonard on Sep 28, 2010Until recently, I've been confused and frustrated by the zfs list output as I try t...
分类:其他好文   时间:2014-08-14 10:31:38    阅读次数:390
Java异常捕获
1 public class Main { 2 3 /** 4 * 在写异常处理的时候,一定要把异常范围小的放在前面,范围大的放在后面, 5 * Exception这个异常的根类一定要刚在最后一个catch里面, 6 * 如果放在前面或者中间,任何异常都会和...
分类:编程语言   时间:2014-08-14 00:53:57    阅读次数:235
poj 3278 Catch That Cow (bfs搜索)
Catch That Cow Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 46715   Accepted: 14673 Description Farmer John has been informed of the location of a fugitiv...
分类:其他好文   时间:2014-08-13 19:00:57    阅读次数:230
把raw目录下的几张照片存放到SD卡里面去
1 try 2 { 3 4 //SD卡路径 5 String filename =android.os.Environment 6 .getExternalStorageDirectory().getAbsolutePath() 7 ...
分类:其他好文   时间:2014-08-13 18:07:36    阅读次数:161
读取raw目录中的文件数据
1 try { 2 InputStream is2 = getResources().openRawResource(R.raw.info); 3 InputStreamReader isr2 = new InputStreamReader(is2,...
分类:其他好文   时间:2014-08-13 18:06:36    阅读次数:154
读取Assets中的文件数据
1 try { 2 // 返回的字节流 3 InputStream is = getResources().getAssets().open("info.txt"); 4 // 当读取时,属于文本文件的时候,需要将它包装成字符...
分类:其他好文   时间:2014-08-13 18:00:06    阅读次数:151
HDU - 4939 Stupid Tower Defense
Problem Description FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers which...
分类:其他好文   时间:2014-08-13 13:14:47    阅读次数:196
java获取计算机硬件参数
public class HardWareUtils {/** * * 获取主板序列号 * * * * @return */public static String getMotherboardSN() {String result = "";try {File file = File...
分类:编程语言   时间:2014-08-13 12:41:26    阅读次数:331
Stupid Tower Defense
Problem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by bu...
分类:其他好文   时间:2014-08-12 21:41:14    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!