Printing from A to Z by adding numbers in a loop
It is good to know that, besides counting numbers, it is also possible to count with letters in java. We will do this with the type char. The type char contains 65,535 characters. You could check this yourself
(but it will cost much computing power, so it could be that your computer can’t handle that. Therefore you could change the 65535 to a smaller number like 100)
by making a for-loop which runs through all the characters and print them one-for-one:
When you want to print the alphabet, for example, you could also say: oke java, go from a to z and print them, like this:
It is also fun for some people to make different shapes when printing, for example, the alphabet. See the next page: Pyramids.