Skip to content

Консольное приложение №2(Спринт 7) - #1

Open
ValentinPside wants to merge 1 commit into
devfrom
my
Open

ValentinPside wants to merge 1 commit into
devfrom
my

Conversation

@ValentinPside

Copy link
Copy Markdown
Owner

Первая попытка

println("Создание новой заметки.\n" +
"Введите название новой заметки или Отмена для отмены.")
val scanner = Scanner(System.`in`).nextLine()
if (scanner == "Отмена") {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍏 Можно даже так сделать
name.equals("Отмена", ignoreCase = true)
эквивалент equalsIgnoreCase из Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants