`
terry0501
  • 浏览: 306055 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
准备工作   首先先下载Windows版本的SVN服务器(各位都会使用搜索引擎所以就不提供下载地址了),这里我以svn-win32-1.4.3的ZIP解压缩版为例,将其解压缩到目标目录,例如我是解压到D盘下的Subversion目录,把D:\Subversion\bin加到系统环境 ...
public String nextMonth(){ Date date = new Date(); int year=Integer.parseInt(new SimpleDateFormat("yyyy").format(date));//取到年份值 int month=Integer.parseInt(new SimpleDateFormat("MM").format(date))+1;//取到鱼粉值 int day=Integer.parseInt(new SimpleDateFormat("dd" ...
String str = "Oct 10 00:00:00 UTC+0800 2010"; DateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss 'UTC+0800",Locale.ENGLISH); Date date = df.parse(str); System.out.println(date); System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(date)); ...
1、length() 字符串的长度   例:char chars[]={'a','b'.'c'};     String s=new String(chars);     int len=s.length(); 2、charAt() 截取一个字符   例:char ch;     ch="abc".charAt(1); 返回'b' 3、getChars() 截取多个字符   void getCh ...
/** * 输出字符串s中出现次数最多的字符 * @param s */ public void testMaxCount(String s){ char[]a=s.toCharArray(); Map<String, Integer> count=new HashMap<String, Integer>(); for(char c:a){ if(!count.containsKey(String.valueOf(c))){ count.put ...
今天用myeclipse自动生成POJO类时一直找不到java src folder。后来通过下面的步骤解决了。按下面的做会生成一个HibernateSessionFactory类。这个不需要可以删除。 问题 web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project。 并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的javasource路径。 原因: 使用版本控制的时候,工程根目录 ...
1. 长度限制 <script> function test() { if(document.a.b.value.length>50) { alert("不能超过50个字符!"); document.a.b.focus(); return false; } } </script> <form name=a onsubmit="return test()"> <textarea name="b" cols="40" wrap="VIRTUAL" ro ...

导出Word

<%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib uri="http://www.bstek.com/dorado" prefix="d"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>科技管理平台</ ...

sql通配字符

    博客分类:
  • sql
SQL 通配符 在搜索数据库中的数据时,SQL 通配符可以替代一个或多个字符。 SQL 通配符必须与 LIKE 运算符一起使用。 在 SQL 中,可使用以下通配符: select * from student where name like 'dd%'; 通配符 描述 % 替代一个或多个字符 _ 仅替代一个字符 [charlist] 字符列中的任何单一字符 [^charlist] 或者 [!charlist] 不在字符列中的任何单一字符
public class TestMap { Map<String,String> map =null; List<String> list=null; public static void main(String[] args) { TestMap test=new TestMap(); test.testSet1(); } /*** * map遍历方法一 */ public void testMap1(){ map = new HashMap<String,String>(); map.put("id1" ...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ page import="java.util.*"%> <%@ page import="bean.User&q ...
一些常见的Android面试基础题做下总结,看看你能做出多少道? 1. Intent的几种有关Activity启动的方式有哪些,你了解每个含义吗? --------------------------------------------------------------------------------     这里Android123提示大家,Intent ...
Java 语言是一种具有动态性的解释型编程语言,当指定程序运行的时候, Java 虚拟机就将编译生成的 . class 文件按照需求和一定的规则加载进内存,并组织成为一个完整的 Java 应用程序。 Java 语言把每个单独的类 Class 和接口 Implements 编译成单独的一个 . class 文件,这些文件对于 Java 运行环境来说就是一个个可以动态加载的单元。正是因为 Java 的这种特性,我们可以在不重新编译其它代码的情况下,只编译需要修改的单元,并把修改文件编译后的 . class 文件放到 Java 的路径当中, 等到下次该 Java 虚拟机器重新激活时,这个逻辑上的 ...
public String nextMonth(){ Date date = new Date(); int year=Integer.parseInt(new SimpleDateFormat("yyyy").format(date)); int month=Integer.parseInt(new SimpleDateFormat("MM").format(date))+1; int day=Integer.parseInt(new SimpleDateFormat("dd").format(date)); if ...
•DateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");         •DateFormat format 2= new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");         •Date date = null;    •String str = null;                  •            •// String转Date    •str = "2007-1-18";          • ...
Global site tag (gtag.js) - Google Analytics