Because the command line environment (from where applications are started) only understands characters, and has no notion of numbers. Plus, strings can be converted into numbers if need be, but not vice versa.
Ping & DNS - updated with new look and Ping home screen widget
Main Method is the communication medium between jvm and user, so it should receive the input from user in user understandable format ie String...
Joined: Mar 22, 2005
I'm sorry, but that doesn't make sense - a number is just as understandable by a user as a string.
Joined: May 11, 2010
My view is as long the number is not associated with some thing it does not have any meaning, 15 can represent a day in a month or money or age, etc etc. it can be a symbol as well. but words are self explanatory (when they are meaningful).