I want to split the first part of the input(i.e-the integer part)as a whole not as invidiual numbers.
FOr example, 25C76
should be stored in the array as [25,C,76]
or '5675P4' should be stored in the array as [5675,C,4]
or '55P46' should be stored in the array as [55,C,46]
String temp = inp.nextLine();
int temp_length = temp.length();
String []input = new String[temp_length];
for(i =0;i < temp_length;i++)
{
input[i] =Character.toString(temp.charAt(i));
}
This stores the values as [2,5,C,7,6]
note - the 2 and 5 are stored as string values and I want the same result with the 25 being stored as a string in the array