
how to use nested for to print char in java language?

Hello Friend,
Try the following code:
class UseNestedLoops{
public static void main(String[] args){
char[][] letters = { {'A', 'B'}, {'C','D'} };
for (int i=0;i<2;i++) {
for (int j=0;j<2;j++) {
System.out.println(letters[i][j]);
}
}
}
}
Thanks

pls send me the above project topic code
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.