码迷,mamicode.com
首页 >  
搜索关键字:try except    ( 18632个结果
LeetCode: Single Number Ⅱ
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime ...
分类:其他好文   时间:2014-05-27 00:10:26    阅读次数:319
Virtualization Basics
Virtualization Basics Virtualization is not a new concept, but its complexity has been growing, and a number of new paradigms are rising. I will try t...
分类:其他好文   时间:2014-05-26 12:08:01    阅读次数:381
针对Yii框架的nginx配置
我曾经针对yii制作了 个nginx配置,其中包括了以下几项内容:rewrite规则(try_file),需要nginx0.8.6版本以上支持。针对于icon, robots.txt文件的日志优化.svn, .git,等版本控制文件的忽略,以及Mac本身索引文件目录Yii框架本身应该禁止web访问的...
分类:其他好文   时间:2014-05-26 07:54:58    阅读次数:255
异常处理情况
public void Update(byte[] buffer){if ( buffer == null ) {throw new ArgumentNullException("buffer"); //判断参数为空,抛出异常,而非try catch捕获}Update(buffer, 0, buf....
分类:其他好文   时间:2014-05-26 07:03:27    阅读次数:268
JavaScript错误处理
JavaScript 错误 - Throw、Try 和 CatchJavaScript 测试和捕捉try 语句允许我们定义在执行时进行错误测试的代码块。catch 语句允许我们定义当 try 代码块发生错误时,所执行的代码块。JavaScript 语句 try 和 catch 是成对出现的。语法tr...
分类:编程语言   时间:2014-05-24 09:53:13    阅读次数:295
LeetCode: Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime comple...
分类:其他好文   时间:2014-05-23 07:22:48    阅读次数:241
深入同步语法
1. 深入synchronized关键字 1 class Service{ 2 public void fun1(){ 3 synchronized(this){ 4 try{ 5 Thread.sleep(3000);...
分类:其他好文   时间:2014-05-23 03:28:22    阅读次数:230
leetcode Remove Nth Node From End of List
题目说:Try to do this in one pass 只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode...
分类:其他好文   时间:2014-05-23 01:52:29    阅读次数:331
2E02-View-Lists-multiple -choice-list
介绍一个多选list /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
分类:其他好文   时间:2014-05-23 00:52:57    阅读次数:455
2H03-view-radio-group-rating-bar
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
分类:其他好文   时间:2014-05-23 00:30:50    阅读次数:415
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!