public static void main(String[] args) { Map<String, String> map = new HashMap<String, String>(); map.put("1", "value1"); map.put("2", "value2"); map. ...
分类:
其他好文 时间:
2016-04-15 00:05:49
阅读次数:
134
import java.util.Scanner; public class PalindromicNumber { /** * 输入一个五位数判断是否为回文数 */ public static void main(String[] args) { Scanner s=new Scanner(Sys ...
分类:
其他好文 时间:
2016-04-14 22:32:45
阅读次数:
193
2016.4.12 1、 IEnumerable接口: GetEnumerator()方法,用于返回一个循环访问集合的枚举数 IEnumerator()接口: Object Current{get;}属性,获取集合中的当前元素 bool MoveNext()方法,访问集合的下一个元素 void Re ...
分类:
Web程序 时间:
2016-04-14 22:26:55
阅读次数:
268
package Student; import java.util.Scanner; public class Grade { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated m ...
分类:
其他好文 时间:
2016-04-14 22:17:17
阅读次数:
125
一、 (1) package com.lxb.cn; public class Calculation { double a; double b; public void sum(){ System.out.println(a+b); } public void sub(){ System.out. ...
分类:
其他好文 时间:
2016-04-14 22:16:21
阅读次数:
165
求二次方程的根 #include <stdio.h >#include<math.h>int main(void) { //把三个系数保存到计算机中 int a = 1; //=不表示相等,表示赋值 int b = 4; int c = 4; double delta; //delta存放的是b*b ...
分类:
编程语言 时间:
2016-04-14 22:15:31
阅读次数:
247
public class Card { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int stu[] = new int[3]; try{ for( ...
分类:
编程语言 时间:
2016-04-14 22:09:56
阅读次数:
277
后台java代码 @RequestMapping(params = "command=adduser") public void getUser(HttpServletResponse response) throws Exception{ JSONObject result1 = new JSON ...
分类:
Web程序 时间:
2016-04-14 19:26:23
阅读次数:
173
转自:http://blog.csdn.net/kasalyn/article/details/11473885 static inline void raw_spin_lock(raw_spinlock_t *lock){ preempt_disable(); do_raw_spin_lock(l ...
分类:
其他好文 时间:
2016-04-14 17:43:44
阅读次数:
168
如果json 字符串不符合规范,可以通过自定义jsonconvert 解决 public class SingleValueArrayConverter<T> : JsonConverter { public override void WriteJson(JsonWriter writer, ob ...
分类:
编程语言 时间:
2016-04-14 17:37:57
阅读次数:
157