java.io类 PrintWriterjava.lang.Object java.io.Writer java.io.PrintWriter所有已实现的接口:Closeable, Flushable, Appendablepublic class PrintWriterextends ...
分类:
其他好文 时间:
2015-05-29 00:55:27
阅读次数:
287
关键在于写好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
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
修改用户控制器AccountController,增加角色管理器。 public class AccountController : Controller { public AccountController() { } p...
分类:
Web程序 时间:
2015-05-29 00:32:34
阅读次数:
369
先定义下要获取的实体: 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
新建一个AdminViewModel 文件,建立两个视图模型类public class RoleViewModel { public string Id { get; set; } [Required(AllowEmptyStrings=false)] ...
分类:
Web程序 时间:
2015-05-28 23:02:08
阅读次数:
295
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
问题及代码:
#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