how would i convert numeric code to char? ive come stuck on a program and im not too sure how to change it over to char A-Z.. any help would be great
Printable View
how would i convert numeric code to char? ive come stuck on a program and im not too sure how to change it over to char A-Z.. any help would be great
Something like this :)
Code :System.out.println((char) 65 + " to " + (char) 90);
// Json
thanks for the Reply Json basically i have to modify my arrayUtil so it generates random chars im not too sure how to do it :S
Code :import java.util.Random; public class ArrayUtilOne { public static int[] randomIntArray(int length, int n) { int[] a = new int[length]; for (int i = 0; i < a.length; i++) a[i] = generator.nextInt(n); return a; } private static Random generator = new Random(); }