0

why we use String everywhere in Java, like in labels, text fields even we need some integer value

25th Aug 2016, 7:03 PM
Prashant
Prashant - avatar
3 ответов
0
because we can represent integers in strings easily. but other way is bit difficult
26th Aug 2016, 6:27 PM
Gouda Kiran
Gouda Kiran - avatar
0
But we have to parse it everytime
27th Aug 2016, 3:25 AM
Prashant
Prashant - avatar
0
yes. that is just one step. And more over you are asking integers for label and text fields right? labels will display text and text fields also Will have text and text is string data type.
27th Aug 2016, 4:29 AM
Gouda Kiran
Gouda Kiran - avatar