码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Math的用法
public class MathDemo { public static void main(String[] args) { /** * ceil天花板的意思,就是返回大的值,注意一些特殊值 */ double d=Math.ceil(16.34);//17.0 //double d=...
分类:其他好文   时间:2015-05-08 14:45:22    阅读次数:131
.net文件下载方法汇总
转载自:http://blog.sina.com.cn/s/blog_680942070101ahsq.html测试通过,兼容ie、谷歌、360:string path = Server.MapPath("~/upload" + bill.AttachmentPath + bill.Attachme...
分类:Web程序   时间:2015-05-08 14:44:50    阅读次数:137
io流(FileWriter)
/* * 字符流特点: * 既然IO流是用于操作数据的。数据的最常见体现形式是:文件 * 那么,需要在硬盘上,创建一个文件并写入一些文字数据*/import java.io.*;public class FileWriter{ public static void main(String[] ar....
分类:其他好文   时间:2015-05-08 14:43:56    阅读次数:127
IO流 文本文件读取方式
/* * 第一种读取方式 */import java.io.*;public class FileReaderDemo{ public static void main(String[] args) throws IOException { //创建一个文件读取对象和指定名称的文件相关联 //要保....
分类:其他好文   时间:2015-05-08 14:41:23    阅读次数:110
ashx中使用session
1、using System.Web.SessionState;2、实现接口IRequiresSessionStatepublic class Handler : IHttpHandler,IRequiresSessionState{ string code =context.Session["c....
分类:其他好文   时间:2015-05-08 14:40:24    阅读次数:78
Calendar的用法
import java.util.*;import java.text.*;public class CalendarDemo {public static void main(String[] args){Calendar c=Calendar.getInstance();/** *对时间进行重新...
分类:其他好文   时间:2015-05-08 14:40:13    阅读次数:112
Date的用法
类Date表示特定的瞬间,精确到毫秒import java.util.*;import java.text.*;public class DateDemo { public static void main(String[] args){ Date d=new Date(); System....
分类:其他好文   时间:2015-05-08 14:35:44    阅读次数:106
将整数100 随机分成 10段
static void Main(string[] args) { int[] a=new int[101]; Random r = new Random(); int IntervalCount=10; ...
分类:其他好文   时间:2015-05-08 14:33:10    阅读次数:104
作业5.2 5.3
package fiv;public class calc { int na[]=new int[5]; String nc[]=new String[5]; int ncn=0,nm; int re=0; calc(){ } calc(in...
分类:其他好文   时间:2015-05-08 14:31:47    阅读次数:126
文件的续写
/* * 对已有文件的数据续写*/ import java.io.*;public class FileWriterDemo3 { public static void main(String[] args) throws IOException { // 传递一个true参数,代表不覆盖已有的.....
分类:其他好文   时间:2015-05-08 14:27:46    阅读次数:87
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!