Can i convert an integer in java into an array i mean suppose i have declared an integer as int a=”123″ can i assign the same value to an array if yes how
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
zemiak
int[] a1 = { 123, 456, 789 };
int[] a2 = new int[3];
a2[0]=123;
a2[1]=456;
a2[2]=789;