Hi
I am new to java and I have an array
int [] A = {140,150,160,170,180,190}and i need to add infinity at the beginning of the array
like so:
int [] A = {inf,140,150,160,170,180,190}i know from python to do it like so:
A=[140,150,160,170,180,190]
A=[float('inf')]+Ai need a way to do that in java as simpel as python without loops
its importent to say i need the array / list (A=[140,150,160,170,180,190]) to be givan with the code
Thank you!