?? shopping.java
字號:
package wssd;
import java.util.*;
public class shopping
{
public ArrayList shoplist = null;
private String shoptime = "";
private double shopprice = 0.0;
private String paystyle = "";
private String user_id = "";
private String orderstatus = "";
private String id = "";
public void setShoplist()
{
shoplist = new ArrayList();
}
public ArrayList getShoplist()
{
return this.shoplist;
}
public void setShoptime(String shoptime)
{
if(shoptime != null)
this.shoptime = shoptime;
}
public String getShoptime()
{
return this.shoptime;
}
public void setShopprice()
{
shopprice = 0.0;
for(int i=0; i<shoplist.size(); i++)
{
wssd.carTable ct = (wssd.carTable)shoplist.get(i);
shopprice += Double.parseDouble(ct.getPrice());
}
}
public void setShopprice(double shopprice)
{
this.shopprice = shopprice;
}
public double getShoprice()
{
return this.shopprice;
}
public void setPaystle(String paystyle)
{
if(paystyle != null)
this.paystyle = paystyle;
}
public String getPaystyle()
{
return this.paystyle;
}
public void setUser_id(String user_id)
{
if(user_id != null)
this.user_id = user_id;
}
public String getUser_id()
{
return this.user_id;
}
public void setOrderstatus(String orderstatus)
{
if(orderstatus != null)
this.orderstatus = orderstatus;
}
public String getOrderstatus()
{
return this.orderstatus;
}
public void setId(String id)
{
if(id != null)
this.id = id;
}
public String getId()
{
return this.id;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -