My question is..
import java.util.*;
class DemoArrayList
{
public static void main(String args[])
{
ArrayList<Object> a=new ArrayList<Object>();
a.add(10);
a.add("+");
a.add(20);
int ob=a.get(0);
}
}
I am trying to convert a.get(0) (which is an object of Object class) to Object of Integer class..
reply soon please..
questionzeinab June 3, 2011 at 2:48 PM
int i = Integer.parseInt(Obj); how can i make this in c# not java ?please
Java Question...Dinesh kumar jain July 7, 2011 at 5:52 PM
My question is.. import java.util.*; class DemoArrayList { public static void main(String args[]) { ArrayList<Object> a=new ArrayList<Object>(); a.add(10); a.add("+"); a.add(20); int ob=a.get(0); } } I am trying to convert a.get(0) (which is an object of Object class) to Object of Integer class.. reply soon please..
THIS IS WRONG !plop December 22, 2011 at 4:53 PM
THIS IS WRONG !
converting object to Integer in JavaPrakash July 9, 2012 at 6:43 PM
How to convert the object (Example: 9.6K) to integer
ErrorDanny GutiƩrrez August 20, 2012 at 9:30 PM
It is not object, is a simple string... bad example
Thisstranger November 17, 2012 at 8:47 PM
OMFG dude, your subject is to convert from Object, not from string
Post your Comment