I wrote this program that's suppso eto print out alphabets like
aa
ab
ac
and so on .
Here is my code :
public class String {
public static void main (String[]args){
char [] alpha = {'a','b','c','d','e','f','g','h','i'};
for (int i = 0; i < alpha.length; i++){
for (int k = 0; k < alpha.length; k++) {
System.out.println ( alpha[k] + alpha[i]);
}}}}
My question is , why does it print out integers ? and offcourse what did I do wrong. Thanks a bunch.

New Topic/Question
Reply



MultiQuote




|