Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Yandex-Practicum/Java-Module-Project-YP
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
Loading
...
head repository: televizzor/Java-Module-Project-YP
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Apr 11, 2024

  1. Сделал отдельный класс для определения правильного падежа слово "Рубль"

    Так же отдельный класс для хранения информации о наименовании товара и его стоимости
    televizzor committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    1924256 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Добавил проверку на пустое название товара и название товара состояще...

    ...е только из цифр, пришлось прибегнуть к matches("\\d+") хоть мы этого и не проходили, если всё правильно сделал, то пожалуйста, дайте обратную связь, как можно было бы реализовать Это без этой функции.
    Проверил и программа не пропускает никакое значение гостей кроме Целой Цифры 2 и больше, не совсем понял что нужно исправить.
    Добавил условие для корректного отображения падежа слова "Рубль"
    Так же для красоты добавил вывод "Вы не добавили ни одного товара" при пустом списке products
    televizzor committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    9481024 View commit details
    Browse the repository at this point in the history
Loading

AltStyle によって変換されたページ (->オリジナル) /