I'm working on a project currently where I have a String array of 8 values that number but are stored as strings. String[3] and String[7] are letters stored as strings that I need to convert to their ASCII values, but I can't seem to do that in java. I keep getting an error saying that I cannot convert a String type to int type, and I don't know any other way to get these string letters to their ASCII values. Here is the code I have so far...
String stringInfo [] = input.split(",");
int info [] = new int [8];
int x = 0;
while (x<stringInfo.length) {
info[x] = Integer.parseInt(stringInfo[x]);
System.out.println(info[x]);
x++;
}
so within that array, those two values need to be turned into ASCII but that code keeps getting errors and I don't know how to fix it. How would I do this?