Java for loops | SoloLearn: Learn to code for FREE!

+3

Java for loops

can you explain this code char a; for(a='A'; a<='Z'; a++){ System.out.printf("%c %c",a,a+32); }

9/4/2018 12:26:14 AM

BHOUSZJINGJING

50 Answers

New Answer

+1

ok then Idk

0

why is that the out put is Aa Bb Cc Dd ......

0

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

0

you mean the second declare run in lower letters and it runs 32 times ?

0

0

in for loops only String not included ?

0

no not included

0

only char,int ?

0

no moy only char and int

0

0

0

i though this was somthing else sorry Yes you need it

0

everything else i was fine with

0

+32 in that program I notice it is the only cause to lower case the letters correct me if im wrong