最近刚开始工作,首先让我在熟悉公司编程环境的前提下做一些简单的增删改查,在此总结一些这些天遇到的问题。1,在刚开始建表的时候,我在oracle数据库中设置的主键id为四位的number类型,对应的实体类中id声明为Integer类型的,结果遇到的问题,在页面显示的时候,数字显示总是千分位上为一个,做...
分类:
其他好文 时间:
2014-11-17 22:43:03
阅读次数:
313
DescriptionYou are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digi...
分类:
其他好文 时间:
2014-11-17 22:40:06
阅读次数:
245
Part 1: MomentsDefinition 1 For each integer $n$, the nth moment of $X$, $\mu_n^{'}$ is\[\mu_{n}^{'} = EX^n.\]The nth central moment of $X$, $\mu_n$, ...
分类:
其他好文 时间:
2014-11-17 21:02:46
阅读次数:
152
代码如下:
import java.lang.reflect.Field;
public class TwoPlusTwo {
public static void main(String[] args) throws Exception {
Class cache = Integer.class.getDeclaredClasses()[0];
System.out.println...
分类:
编程语言 时间:
2014-11-17 17:47:40
阅读次数:
256
LabyrinthTime Limit: 2000msMemory Limit: 32768KBThis problem will be judged onPKU. Original ID:138364-bit integer IO format:%lld Java class name:MainT...
分类:
其他好文 时间:
2014-11-17 12:13:27
阅读次数:
328
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3,You should return the followin...
分类:
其他好文 时间:
2014-11-17 06:53:48
阅读次数:
152
看到这个题目的时候,首先不认识 Determine这个单词,英文不好没办法,查了下是确认的意思,然后不懂 palindrome这个单词, 查了下是回文的意思。
问题是 回文是个什么东西,官方解释: A palindrome is
a word, phrase, number,
or other sequence of characters which
reads the same b...
分类:
其他好文 时间:
2014-11-17 01:45:30
阅读次数:
220
1.TreeSet原理: /** TreeSet存储对象的时候, 可以排序, 但是需要指定排序的算法 * * Integer能排序(有默认顺序), String能排序(有默认顺序), 自定义的类存储的时候出现异常(没有顺序)** 如果想把自定义类的对象存入TreeSet进行排序, 那么必须实现Com...
分类:
编程语言 时间:
2014-11-17 00:21:35
阅读次数:
341
Lausanne Capitale OlympiqueTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onOpenJudge. Original ID:103164-bit integer IO format:%l...
描述The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is th...
分类:
其他好文 时间:
2014-11-16 17:16:56
阅读次数:
270