parent
e93d9f4714
commit
355e5778a0
@ -0,0 +1,34 @@
|
||||
package com.example.drink_order_system;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Order {
|
||||
private String order_number;
|
||||
private String time;
|
||||
private String takeAway;
|
||||
private String cost;
|
||||
|
||||
Order(String info)
|
||||
{
|
||||
String[] info_list = info.split(",");
|
||||
order_number = info_list[0];
|
||||
time = info_list[1];
|
||||
takeAway = info_list[2];
|
||||
cost = info_list[3];
|
||||
}
|
||||
|
||||
public String getOrder_number() {
|
||||
return order_number;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public String getTakeAway() {
|
||||
return takeAway;
|
||||
}
|
||||
|
||||
public String getCost() {
|
||||
return cost;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue