//获取内部 ScrollViewer方法public static T
FindVisualChild(DependencyObject obj) where T : DependencyObject { if (obj !=
null) { for (int i = 0; i (child); ...
分类:
其他好文 时间:
2014-05-17 13:09:33
阅读次数:
275
在学javacc的时候,发现一个问题,见下:
Example.jj文件
PARSER_BEGIN(Example)
public class Example {
public static void main(String args[]) throws ParseException {
Example parser = new Example(System.in);
...
分类:
编程语言 时间:
2014-05-14 01:25:59
阅读次数:
367
using System;using System.IO;using
System.Reflection;using System.Runtime.InteropServices;using
System.Text;namespace Souxuexiao.Cache{public static c...
分类:
数据库 时间:
2014-05-13 22:28:38
阅读次数:
561
在语法定义上的区别:静态变量前要加static关键字,而实例变量前则不加。在程序运行时的区别:实例变量属于某个对象的属性,必须创建了实例对象,其中的实例变量才会被分配空间,才能使用这个实例变量。静态变量不属于某个实例对象,而是属于类,所以也称为类变量,只要程序加载了类的字节码,不用创建任何实例对象,...
分类:
其他好文 时间:
2014-05-13 22:05:50
阅读次数:
337
http://blog.163.com/jackie_howe/blog/static/199491347201231691525484/set集合容器:实现了红黑树的平衡二叉检索树的数据结构,插入元素时,它会自动调整二叉树的排列,把元素放到适当的位置,以保证每个子树根节点键值大于左子树所有节点的键...
分类:
编程语言 时间:
2014-05-13 21:45:21
阅读次数:
333
代码片段(假设只有3个key=value):public static void
main(String[] args) throws IOException { BufferedReader br = new BufferedReader(
new In...
分类:
其他好文 时间:
2014-05-13 19:48:10
阅读次数:
485
public class BubbleSort{ public static void
main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sorting ,t.....
分类:
编程语言 时间:
2014-05-13 19:45:04
阅读次数:
366
最近准备写点Javase的东西,希望可以帮助大家写出更好的代码。
1、给不可实例化的类提供私有构造器
比如:每个项目中都有很多工具类,提供了很多static类型的方法供大家使用,谁也不希望看到下面的代码:
TextUtils textUtils = new TextUtils();
if(textUtils.isDigitsOnly("123"))
{
//doSometing...
分类:
编程语言 时间:
2014-05-13 11:50:11
阅读次数:
347
正是发布django项目的时候,如果存在静态文件(一般会统一放在名称为media或static的目录下),则需要建立url到文件系统的映射,例如,使用nginx的时候我们需要进行这样的配置.
# Django media
location /media {
alias /home/lyndon/github/Mathematicia...
分类:
其他好文 时间:
2014-05-13 11:49:08
阅读次数:
437
一。start 和end
方法下面是一个对单词"cat"出现在输入字符串中出现次数进行计数的例子:public class RegexMatches{ private static
final String REGEX = "\\bcat\\b"; //边界 private stat...
分类:
编程语言 时间:
2014-05-13 11:02:58
阅读次数:
312