1.结对伙伴:叶煜稳 博客:http://www.cnblogs.com/doubi2wy/四则运算核心计算代码:if(e.getSource()==B1){ String str=T1.getText(); num=Integer.parseInt(str); } for(int i=0...
分类:
其他好文 时间:
2015-04-30 15:56:32
阅读次数:
105
.class public Lcom/SmaliInjector;.super Ljava/lang/Object;.source "SmaliInjector.java"# static fields.field private static tag:Ljava/lang/String;# dir...
分类:
移动开发 时间:
2015-04-30 15:53:17
阅读次数:
225
一、输入和输出Console.Write("字符串")Console.WriteLine("字符串")string s = Console.ReadLine();注意:1.会拼接字符串。2.转义字符:\n \r \t \\ \" \'二、数据类型:整型:int short long byte小数:d...
Action和Func其实都是委托的【代理】简写形式。简单的委托写法: 1 //普通的委托 2 public delegate void myDelegate(string str); 3 4 //Delegate委托调。 5 myDelegate dDelegate = new myDelega....
分类:
其他好文 时间:
2015-04-30 15:48:34
阅读次数:
97
定义:List类表示可通过索引访问的对象的强类型列表,提供用于对列表进行搜索、排序和操作的方法。作用: 泛型最常见的用途是泛型集合 我们在创建列表类时,列表项的数据类型可能是int,string或其它类型,如果对列表类的处理方法相同, 就没有必要事先指定数据类型,留待列表类实例化时再指定。相当于把数...
直接调用Android的webview加载URL时,由于需要登录的session导致URL无法显示,解决方案是在需要访问的URL中加session: String reporturl = "http://xxx.xxx.xx"; CookieSyncManager.createIn...
分类:
Web程序 时间:
2015-04-30 15:43:05
阅读次数:
132
public class Test{ public static void main(String[] args) { String s = "中转地设置导出模板"; String tt = gbEncoding(s); } public static String gbEncoding(fin.....
分类:
编程语言 时间:
2015-04-30 15:42:51
阅读次数:
137
/// /// 在指定的字符串列表CnStr中检索符合拼音索引字符串 /// /// 汉字字符串 /// 相对应的汉语拼音首字母串 public static string GetSpellCode(string C...
分类:
其他好文 时间:
2015-04-30 15:42:08
阅读次数:
165
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-04-30 15:36:25
阅读次数:
135
在C#中this用来指代当前对象,用于当成员函数中的形参名跟成员变量名一致时,进行区分。 但this不仅仅只有这一作用,this还可以如下这样用: class class1 { private int i_a; private string s_a; ...