J
J
Java Developer2021-03-18 20:32:20
Java
Java Developer, 2021-03-18 20:32:20

Please help. How to do it?

how to connect String a =sc.nextLine(); with if, so that after entering the word, execute the code in if would work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
igneus fireman, 2021-03-18
@Elxanjv_1

String a =sc.next.Line();
if(a.equals("выполняй") {
// код;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question