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才行
相关文档:
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--每页显示记录条数
@currentpage int output,--第几页
@orderid nvarchar(50),--主键排序
@sort int,--排序方式,1表示升序,0表示降序排列
......
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与SAP数据交互的方式总结
RFC方式:Java程序直接通过RFC访问SAP的对象(或称函数,可能叫法不对)
SAP
提供了BAPI(Business Application Programming
Interface),BAPI是SAP系统对外提供的一系列接口,主要是使第三方程序通过这些接口来使用SAP,从而方便客户定制某些程
序.VB,Java,C,C++等都可以通过BAPI来访问SAP ......
/*多态示例*/
package demo;
class AA {
public void f(){
System.out.println("f in AA");
}
}
class BB extends AA{
public void f(){
System.out.println("f in BB");
}
}
public class Test_Dt {
public static void main(String[] args) ......
在实际的开发中, jvm 默认的内存大小是不够的,需要自定义设置。可按如下的方法进行设置:
第一、进入到指定运行文件的 run configurations, 就会弹出运行设置对话窗体
第二、在 ja ......