?? ship.java
字號:
?package sun.com.domain;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
public class Ship{
private String shipname;
private String voyage;
private String blno;
private String destination;
private Vector<Box> box=new Vector<Box>();
public Ship(String shipname,String voyage,String blno,String destination){
this.shipname=shipname;
this.voyage=voyage;
this.blno=blno;
this.destination=destination;
}
//獲取提單頭
public String getIBlHead() {
String strHead = this.getBlno().substring(0,this.getBlno().indexOf(" ")).trim();
return strHead;
}
public String getBlno() {
return blno;
}
public void setBlno(String blno) {
this.blno = blno;
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public String getShipname() {
return shipname;
}
public void setShipname(String shipname) {
this.shipname = shipname;
}
public String getVoyage() {
return voyage;
}
public void setVoyage(String voyage) {
this.voyage = voyage;
}
public Vector<Box> getBox() {
return box;
}
public void setBox(Vector<Box> box) {
this.box = box;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return super.toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -