码迷,mamicode.com
首页 >  
搜索关键字:class    ( 183544个结果
PrintWriter
java.io类 PrintWriterjava.lang.Object java.io.Writer java.io.PrintWriter所有已实现的接口:Closeable, Flushable, Appendablepublic class PrintWriterextends ...
分类:其他好文   时间:2015-05-29 00:55:27    阅读次数:287
Longest Palindromic Substring
关键在于写好helperpublic class Solution { public String longestPalindrome(String s) { if(s==null) return null; if(s.length()==1) return s; ...
分类:其他好文   时间:2015-05-29 00:51:42    阅读次数:149
StringBuffer and StringBuilder
As of release JDK 5, this class has been supplemented with an equivalent class designed for use by a single thread, StringBuilder. The StringBuilder c...
分类:其他好文   时间:2015-05-29 00:37:21    阅读次数:135
asp.net Identity2 角色(Role)的使用(三)用户管理,用户控制器和视图
修改用户控制器AccountController,增加角色管理器。 public class AccountController : Controller { public AccountController() { } p...
分类:Web程序   时间:2015-05-29 00:32:34    阅读次数:369
把URL传递参数转变成自定义实体方法
先定义下要获取的实体: public class InputClass { public long Id { get; set; } public int Status { get; set; } public DateTime UdpateTime...
分类:Web程序   时间:2015-05-29 00:23:25    阅读次数:641
(线程)三个窗口随机销售火车票
class Program { public static object obj = new object(); public static int n = 10; static void Main(string[] args) {...
分类:编程语言   时间:2015-05-28 23:06:27    阅读次数:242
asp.net Identity2 角色(Role)的使用(二)
新建一个AdminViewModel 文件,建立两个视图模型类public class RoleViewModel { public string Id { get; set; } [Required(AllowEmptyStrings=false)] ...
分类:Web程序   时间:2015-05-28 23:02:08    阅读次数:295
模型类中 Parcelable 接口使用
1 package com.exmyth.ui.model; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 public class ProductItem{ 7 //---------------------...
分类:其他好文   时间:2015-05-28 22:43:34    阅读次数:264
第十二周程序阅读5:基类和派生类的转换
问题及代码: #include using namespace std; class A { protected: int a,b; public: A(int aa, int bb):a(aa), b(bb) {} void printA() { cout<<"a: "<<a<<"\t...
分类:其他好文   时间:2015-05-28 21:40:53    阅读次数:192
用数组写出栈(先进后出)
//用数组写出栈(先进后出) import java.util.Collection; import java.util.NoSuchElementException; public class ArrayStack { private int initalSize = 5; private Object[] stack; private int head; private int tai...
分类:编程语言   时间:2015-05-28 21:38:59    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!