+ 1
Please, why will the data input from a user have a default data type of string?
(*removed java tag)
5 ответов
+ 4
Because that is how they programmed it.
It won't be fixed that user will enter string or number, so as common type they use string later if you need you can change it to integer.
+ 1
It's not the same in java.. You can take any type directly from the input as needed..
So it's not apply to java ..
Why the tag java there?
0
Ok.
Thank you.
0
Jayakrishna Well noted.
Thank you for this clarification.