I\'m trying to convert an array of characters into integers, so I can get the ascii code, but the code I have doesn\'t seem to be working.
import javax.swing.*;
Try it this way...
char[] charArray = phrase.toCharArray(); int[] intArray = new int[charArray.length]; int i=0; for (char c : charArray){ intArray[i] = c; i++; }