
Anonymous
Not applicable
2012-04-10
09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[resolved] converting short to Integer
how can I convert a short (not Short) to an Integer.
short s
I've tryied
Integer.parseInt(new Short(s))
thanks for helping
short s
I've tryied
Integer.parseInt(new Short(s))
thanks for helping
191 Views
1 Solution
Accepted Solutions

Anonymous
Not applicable
2012-04-10
11:50 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dchambon,
You need to convert it to a Short first:
short abc = 10;
Short a = new Short(abc);
Integer myint = a.intValue();
or also:
Integer myint = (new Short(abc)).intValue();
You need to convert it to a Short first:
short abc = 10;
Short a = new Short(abc);
Integer myint = a.intValue();
or also:
Integer myint = (new Short(abc)).intValue();
191 Views
3 Replies

Anonymous
Not applicable
2012-04-10
11:50 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dchambon,
You need to convert it to a Short first:
short abc = 10;
Short a = new Short(abc);
Integer myint = a.intValue();
or also:
Integer myint = (new Short(abc)).intValue();
You need to convert it to a Short first:
short abc = 10;
Short a = new Short(abc);
Integer myint = a.intValue();
or also:
Integer myint = (new Short(abc)).intValue();
192 Views

Anonymous
Not applicable
2012-04-10
01:26 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks a lot
191 Views

Anonymous
Not applicable
2012-04-25
06:56 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tks it was helpful
191 Views
