- 浏览: 64928 次
- 性别:
- 来自: 北京
最新评论
-
患过风伤:
很不错感谢分享
java将一个字符串中逗号前的部分加上单引号 -
患过风伤:
java将一个字符串中逗号前的部分加上单引号
文章列表
<c:forEach items="${list}" var="info" varStatus="status"> <tr> <td >${info[0]}</td> <td >${info[1]}</td> <td >${info[2]}</td> <td >${info[3]}</td> </tr></c:forEach>
...
<!DOCTYPE HTML><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Highcharts Example</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jqu ...
<%@ page language="java" import="java.util.*,example.Configuration" pageEncoding="UTF-8"%><% Configuration conf = new Configuration(); String getSeeesionId = (String) session.getAttribute("sessionId"); String sessionId = session.getId(); String visit ...
public class SpiltString { public String spilt(String str) { StringBuffer sb = new StringBuffer(); String[] temp = str.split(","); for (int i = 0; i < temp.length; i++) { if (!"".equals(temp[i]) && temp[i] != null) sb.append("'" + temp[i] + "',& ...
properties属性文件:config.properties
# #Tue Aug 13 15:30:56 CST 2013 timeInterval=33 name=holdOn filepath=bb ip=192.168.1.1
类实例:Configuration.java
package example;
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOExcep ...
public class Println {
public static void main(String[] args) { // TODO Auto-generated method stub int a=1; for(int i=0;i<20;i++){ System.out.print(i+" "); if(a%5==0){ System.out.println(); } a++; }}
}
package example;
import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;
//实体类
class Bean {
public int id; public String name; public Date date;
public int getId() { return id; }
public void setId(int id) { this.id = id; }
public Date getDate() { retur ...