You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
571 B
35 lines
571 B
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;
|
|
}
|
|
}
|