Coder Social home page Coder Social logo

mywarehousetesttask's Introduction

MyWarehouse

This is test task. Unfinished project

Sample

    Product product1 = new Product("1", "Стул", 1000,2000);
    Product product2 = new Product("2", "Занавески", 250, 1000);
    Product product3 = new Product("3", "Вино", 250, 1000);
    Stock stock1 = new Stock("Москва");
    Stock stock2 = new Stock("Нижний Новгород");
    stock1.add(product1);
    stock1.add(product2);
    stock2.add(product3);
    System.out.println(stock1.getProducts());
    System.out.println(stock2.getProducts());
    GoodsReceipt receipt = new GoodsReceipt(1, stock1.getName(), stock1.getProducts());
    Sale sale = new Sale(1, stock1.getName(), stock1.getProducts());
    sale.saleProduct(product1, stock1);
    System.out.println(stock1.getProducts());
    MoveProduct moveProduct = new MoveProduct(1);
    moveProduct.move(stock1.getProducts(),stock2.getProducts(),1);
    System.out.println(stock2.getProducts());

mywarehousetesttask's People

Contributors

truejegor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.