I have
long [] data and i need to convert it to ArrayList<BigInteger>
Is there an easy way to do this? or i have to write a foreach loop and get the BigInteger value of long and add to the list?
Any shortcut?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As @jb-nizet (JB Nizet) said, there are no shortcuts to this task.
And here is the 3 lines of code to “convert” a long[] in a List