+ 1

Can anyone explain this Java logic (Security problem*) ?

I used to solve this security problem in another method but im not able get the logic of the below code, so can anyone explain this below logic ? The code is : https://code.sololearn.com/cdcK17w6jaLC/?ref=app

28th Dec 2022, 2:08 AM
Kabilan K
Kabilan K - avatar
2 Respostas
+ 5
There will be setted an indicator = 1 when will come $ or T. Then when after that the indicator equals to 1 will come $ or T the output will be ALARM. But when after that will come G that means G is between of $ and T and the output equals to quiet.
28th Dec 2022, 7:25 AM
JaScript
JaScript - avatar
+ 1
Thank you bro
28th Dec 2022, 9:56 AM
Kabilan K
Kabilan K - avatar