import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Text {
public static void main(String[] args) {
Fruit fruit = new Fruit(100);
NetShop netShop = new NetShop(fruit);
FrontShop frontShop = new FrontShop(fruit);
Thread thread = new Thread(netShop, "网店");
Thread thread1 = new Thread(frontShop, "实体");
ExecutorService service= Executors.newFixedThreadPool(2);