The spy life problem (Java) | SoloLearn: Learn to code for FREE!

+1

The spy life problem (Java)

I can execute all input cases in netbeans, however in CodePlayground it only accepts case 1 and 2 https://code.sololearn.com/cm3Ymi326Vpg/?ref=app

5/12/2020 2:54:00 AM

Jhonathan Atuesta

1 Answer

New Answer

+1

Use cad = read.nextLine(); Not cad = read.next();