I am writing a code which takes ASCII values from a char array and displays it on console.
public class Test1 {
public static void main(String[] args) {
char array[] = new char[] {65, 32, 81, 117, 105, 99, 107, 32, 66, 114, 111, 119, 110, 32, 70, 111, 120, 32, 74, 117, 109, 112, 101, 100, 32, 79, 118, 101, 114, 32, 65, 32, 76, 97, 122, 121, 32, 68, 111, 103 };
for(int l=0;l<array.length;l++) {
System.out.print(array[l]);
}
}
}
is there any efficient way to store the ASCII values into the char array so that the program is more compact and its hard to guess the output.