Pages Menu
TwitterRssFacebook
Categories Menu

Posted by on Jul 18, 2018 in Uncategorized | 0 comments

Java Day 3

Today was the 3rd day of Java camp. Today I learned how to program and use substrings, which are basically strings within other strings. It became useful when we programmed a 4-by-4 box that consists of 16 x’s and a right isosceles triangle that Java prints based on how high you want it to be. Also, we learned how to write functions, and I got much better at placing my semi-colons and brackets. In the afternoon, we started working on a game called “Farmers Game”. This game is where you have to get a human, cabbage, sheep, and wolf on the other side of the river. However, if the human isn’t around, the sheep will eat the cabbage and the wolf will eat the sheep, if the two things are on the same side of the river.

Post a Reply

Your email address will not be published. Required fields are marked *