+ 4
Java for loops
can you explain this code char a; for(a='A'; a<='Z'; a++){ System.out.printf("%c %c",a,a+32); }
51 Réponses
+ 3
see its a char or character means, it will print the 'A' and the ASCII of A + 32 and it's ACII will be printed
+ 2
ok then Idk
+ 1
why is that the out put is Aa Bb Cc Dd ......
+ 1
its beacause of ;a and ; a++
0
i mean I declared Capital letters And its automatically not capital ?
0
;a declares the 2nd one is lowercase and a++ makes it go longer and forever
0
autmatically low In the second declare ?
0
that will make it run 32 times
0
I have difficulty that +32 i did not understand it
0
oh ok
0
you mean the second declare run in lower letters and it runs 32 times ?
0
yes
0
in for loops only String not included ?
0
no not included
0
only char,int ?
0
no moy only char and int
0
not
0
what ?
0
i though this was somthing else sorry Yes you need it
0
everything else i was fine with