Today is the first day of Java week where we are going to have a crash course on the different types of Java. The first question we were asked was; What is Java?
Well, with the aid of the internet, I learned that java is a platform that computers use to run browser games, watch videos, and all those other things that need to be
only runs on browsers.
Today was mostly a play around on Java day, but in the beginning we got a small crash course on Java. Because Java is mostly about graphics and visuals, we had
to learn how to make shapes and how to change the color, but because Java is also able to have be like an animation or I guess you could say that it can change in a way
that it looks like it is moving. For instance, we made a bouncing ball, which when you look at it, it does look like its bouncing, but actually its just making another ball
over and over again but in different places.
Playing more on Java Day 2
Today we continued to work with Java, but unlike yesterday, today we tried to use functions instead of just making a line of code. And this is where I learned how different
Java is from Python. Brackets! SO MANY BRACKETS AND SEMICOLONS! Unlike Python, Java recquires functions to be in stupid brackets instead of just a regular colon, so if you have
a lot of "if" statements, you are bound to get lost without proper committing. And every line in Java needs a semicolon which I guess you have to get used too but for now
its a big pain. Back to what we did today, today we first made a lady bug out of a function. I wasn't able to finish my whole body, but all I needed was some legs and some antennae.
Later that day we started to work on the bouncing balls that we started on yesterday. Today we tried to make many balls bouncing around.From this I learned that when you make a list,
you need to say how many things that you're going to list which I just gotta get used to. But the rest was pretty easy because all we needed to do was make a random function to change the color, size,
velocity, etc and then we had many different balls. Some of the problems that we ran into was that we first made many balls, but only one of them showed. As it turned out,
all the balls were there, but in one same ball. This was fixed when we changed the balls velocities and sizes.colors.
1. You need to use semicolons even more so than in Java.
2. You do not need to say how many items that you are going to list.
3. You need to add all the RGB numbers to get a color.
4. And you need to add "function =" in every function
got a lot to learn. So with my current knowledge I was able to make a pretty basic shape of a heart which I wished I could've added more too, but I spent a while trying to make the bouncing ball code.