?? converterejb.java
字號:
// ==================== Program Discription ==========================
// 程序名稱:示例18-3: ConverterEJB.java
// 程序目的:定義Bean類
// ==============================================================
import java.rmi.RemoteException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
public class ConverterEJB implements SessionBean
{
public double MassToGravity(double mass)
{
return mass*9.8;
}
public double GravityToMass(double gravity)
{
return gravity/9.8;
}
public ConverterEJB( ) { }
public void ejbCreate( ) { }
public void ejbRemove( ) { }
public void ejbActivate( ) { }
public void ejbPassivate( ) { }
public void setSessionContext(SessionContext sc) { }
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -