`
文章列表
import java.io.*; public class FileOperate {    public FileOperate() {    }    /**      * 新建目录      * @param folderPath String 如 c:/fqf      * @return boolean      */    public void newFolder(String folderPath) {        try {            String fileP ...

写文件操作

    博客分类:
  • J2SE
import java.io.BufferedWriter;import java.io.FileWriter;import java.io.IOException;import java.io.PrintWriter; public class WriteFile {  /**  * @param args  */ public static void main(String[] args) {  PrintWriter writer = null;  try {   writer = new PrintWriter(new BufferedWriter(new File ...
Java日期格式化及其使用例子 . 1 SimpleDateFormat担当重任,怎样格式化都行 import java.util.Date; import java.text.SimpleDateFormat; public class Demo { public static void main(String[] args) { Date now=new Date(); SimpleDateFormat f=newSimpleDateFormat("今天是"+"y ...
1 <jsp:param name="name" value="value" /> 说明:用来以“键-值”对的形式为其他标签提供附加信息,它通常与jsp:include,jsp:forword,jsp:plugin一起使用。 2 <jsp:include page="aaa.jsp" flush="true"></jsp:include>说明:在请求时间内在现有的jsp页面中包含静态或者动态的资源,被包含的对象只有对JspWriter对象的访问权限,并且它不能这只头或者Cookie ...
指令用于从jsp发送一个信息到容器中,它用来设置全局变量,类声明,要实现的方法和输出的类型等。1 页面指令(用于设置jsp的一些全局的属性,一般位于jsp页面的第一行):<%@page language="java" import="java.util.*" contentType="text/html;" session="true" buffer="8kb" autoFlush="true"isThreadSafe="true" info=&quo ...
Global site tag (gtag.js) - Google Analytics