`
fx05062219
  • 浏览: 19931 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表

数字加逗号

(amount.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"));
pagedaim
package com.demo.sheep; import java.math.BigInteger; public class BirthSheep { public static void main(String[] args) { // Farm f = new Farm(); // Sheep sheep = new Sheep(f); // f.addSheep(sheep); // // // low // for (long i = 0; i < 100; i++) { // f.getOlder(); ...

struts2 ajax exception

    博客分类:
  • java
import javax.servlet.http.HttpServletResponse; import org.apache.struts2.StrutsStatics; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.AbstractInterceptor; pub ...

java 引用

    博客分类:
  • java
ava Reference Objects or How I Learned to Stop Worrying and Love OutOfMemoryError Introduction I started programming with Java in 2000, after fifteen years with C and C++. I thought myself fairly competent at C-style memory management, using coding practices such as pointer handoffs, and tools su ...

maven SSH POM

    博客分类:
  • java
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupI ...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title& ...
import java.util.ArrayList; import java.util.List; public class PickingATeam { public static void main(String[] args) { PickingATeam pick = new PickingATeam(); List<String> ls = new ArrayList<String>(); ls.add("A"); ls.add("B"); ls.add("C&qu ...
function inheritPrototype(subType, superType){ var prototype = object(superType.prototype); //create object prototype.constructor = subType; //augment object subType.prototype = prototype; //assign object } function object(o){ function F(){} F.prototype = o; return new F(); } function S ...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> ...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> ...
http://technicalmumbojumbo.wordpress.com/2010/02/21/java-util-concurrent-java-5-semaphore/ java.util.concurrent: Java 5 Semaphore Posted on February 21, 2010 | 4 Comments This post is a continuation in the series on Java 5 concurrency utilities. My previous posts dealt with Atomic classes and Lo ...
package { import flash.display.Sprite; import flash.events.MouseEvent; import flash.geom.Point; import mx.collections.ArrayCollection; import mx.collections.CursorBookmark; import mx.controls.DataGrid; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.listClass ...
package tech.algorithms.sort; import java.util.Random; import java.util.Random; public class QuickSort { public static void main(String[] args) { // int[] array = { 13, 13, 13, 13, 13, 13, 13, 13, 13,13 }; // int[] array = { 13, 19, 9, 5, 1, 2, 8, 7, 4, 23, ...

heap sort

    博客分类:
  • java
import java.util.Random; public class HeapSort { /** * @param args */ public static void main(String[] args) { HeapSort hs = new HeapSort(); int[] b = { 4, 7, 10, 564, 1, 8, 1, 1, 9, 4, 1, 46, 2, 96 }; int[] c = new int[10000000];//out of memory ....... Random r = new Ran ...
Global site tag (gtag.js) - Google Analytics