jickcai的博客 -凯发k8国际

`
jickcai
  • 浏览: 235784 次
  • 性别:
  • 来自: 北京
博主相关
  • 博客
  • 微博
  • 相册
  • 收藏
  • 社区版块
    • ( 0)
    • ( 0)
    • ( 0)
    存档分类
    最新评论
    文章列表
    见代码:   php代码:  
      博客分类:
    • java
    下载eclipse-jee-galileo-sr1-win32.zip 解压缩后,打开eclipse.exe不知道为什么,提示错误: jvm   terminated. exit   code=-1。 后来在网上找了一下,有人说是java环境配置的问题,有人说是jvm的问题,后来看来有人说是:eclipse.ini中内存设置过大的问题,虽然我不以为然,还是试了一下 之前eclipse.ini的配置如下: -startup plugins/org.eclipse.equinox.launcher_1.0.201.r35x_v20090715.jar --launcher.library plu ...
      博客分类:
    • java
    改自: http://www.zhenhua.org/article.asp?id=378 package util; import java.io.*; import java.net.*; public class imagedownload { public boolean saveurlas(string photourl, string filename) { //此方法只能用于http协议 try { url url = new ; httpurlconnection connection = (httpurlconnection) ur ...
    httpclient 是 apache jakarta common 下的子项目,可以用来提供高效的、最新的、功能丰富的支持 http 协议的客户端编程工具包,并且它支持 http 协议最新的版本和建议。 httpclient下载地址:http://hc.apache.org/downloads.cgi 示例是api中的一个examples: package org.apache.http.examples; import java.net.socket; import org.apache.http.connectionreusestrategy; import org.apache.ht ...
    • 2009-09-04 15:04
    • 浏览 1021
      博客分类:
    • java
    得到java时间戳 用于数据库中按时间戳查询数据 包括:今天、昨天、本周、本月、本年、选定的时间段 package test; import java.text.dateformat; import java.text.simpledateformat; import java.util.calendar; public class datetest { public static long fromyear(){ calendar nowdate = new java.util.gregoriancalendar(); nowdate.set(calendar.hour_of_d ...
    • 2009-04-07 11:39
    • 浏览 11766
    global site tag (gtag.js) - google analytics
    网站地图