The 'Beer Song Activity' had us code the "99 bottles of beer" song using if-else-statements, while loops, and variables. As expected we ran into a problem; when there was one bottle left it would say "1 bottles of beer on the wall" as opposed to "1 bottle of beer on the wall". To fix this I changed the coding so that if the number of bottles is 1 change "bottles" to "bottle".
I learned that Classes and methods are defined within curled braces.
I learned that Variables have a type and name.
I learned that System.out.print and variables require capitalization.
I learned that blank spaces do not matter.
I learned that In after System.out.print results in a different sentence
No comments:
Post a Comment