I got this array of string
String s1[] = {"H","E","L","L","O"};
and a method to convert it into int
public static int[] String2Int(String[] k){
int[] arrayBuffer = new int[k.length];
for (int i=0; i < k.length; i++)
{
//arrayBuffer[i] = Integer.parseInt(k[i]);
arrayBuffer[i] = Integer.parseInt(k[i]);
}
return arrayBuffer;
I want the decimal values of the characters but no luck on getting it. Google is only helping with if the string were a number.