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
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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
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
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(); }