I would like to know if it is possible to go through the list and create the object, enter the values of the list elements in the constructor. For example:
String result = "1 2 3 4 5 6";
String list[]=result1.split(""); // create a list of String
//next i want to do the following
BigInteger a1 = new BigInteger (l1);// String l1 = "1";String l2 = "2";
BigInteger a2= new BigInteger (l2);
BigInteger result = a1.add(a2);
etc
Is it possible to do that using for each loop? How it should look like? Thanks