+ 1

How to convert an Scanner in to an int?

ಠ_ಠ

7th Feb 2020, 10:58 PM
André Luiz Gonçalves Toldo
2 odpowiedzi
+ 5
here is an int input in java int num = new java.util.Scanner(System.in).nextInt();
7th Feb 2020, 11:20 PM
BroFar
BroFar - avatar
+ 1
Thank you.
7th Feb 2020, 11:48 PM
André Luiz Gonçalves Toldo