易截截图软件、单文件、免安装、纯绿色、仅160KB

java常用实用类学习11.29

现在 所用Java版本,Date类构造方法Date(0)的时间不是Thu Jan 01 01:00:00 GMT 1970了,而是Thu Jan 01 08:00:00 CST 1970。( 1970 年1 月1 日8时0分0秒 星期4)
     为什么 Date b1=new Date(623289600000); 不可以,下面的却可以呢?
long a=623289600000L;
   Date b1=new Date(a); 要在长数字后面加个L才行


相关文档:

用java 打印菱形

public class testthree {
 public static void main(String[] args) {
  testthree t = new testthree();
  t.test();
 }
 private static void test() {
  int d = 0;
  int f = 4;
  int x = 0;
  int y = 6;
  for (i ......

java 使用正则来过滤字符串中的特殊字符

// 过滤特殊字符
public static String StringFilter(String str) throws PatternSyntaxException {
// 只允许字母和数字
// String regEx = "[^a-zA-Z0-9]";
// 清除掉所有特殊字符
S ......

Java SE 内部类与静态变量

package demo;
class InOut{
 String str=new String("Between");
 static int i=666;
  int j=888;
  final int k=999;
 public void amethod(final int iArgs){
  int it315;
  final int x=111;
 /*static*/ class Bicycle
  { 
//&n ......

java判断出栈顺序是否正确

我们知道栈是一种先进后出的数据容器。当一个栈的输入序列是递增序列(例如a,b,c,d),并且在进栈操作时,允许退栈操作,则输出的序列可能有多种形式(例如:d,c,b,a或a,c,b,d等)。但是却肯定不会出现如下出栈序列:a,d,b,c或d,a,b,c等。在输入序列为递增序列的假设下,请编写一个算法判断输入的字符串表示的出栈序列是否为 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号