Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Run {
- public static void main( String[] args ) {
- Storage storage = new Storage();
- Unit unit1 = new Unit("Nike", 43,200);
- Unit unit2 = new Unit("Adidas", 42, 150);
- Unit unit3 = new Unit("Puma", 40,250);
- Unit unit4 = new Unit("Puma", 39,220);
- storage.addUnit(unit1, 3);
- storage.addUnit(unit2, 2);
- storage.addUnit(unit3);
- storage.addUnit(unit4,4);
- storage.printStorage();
- System.out.println("Общая сумма на складе: " + storage.getPrice());
- storage.goodsRetirement(unit1,2);
- storage.printStorage();
- System.out.println("Общая сумма на складе: " + storage.getPrice());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement