The Last month has been a good learning experience so far. I am unfamiliar with Java code, so I was worried that I would have difficulty learning it. My journey in learning Java so far has been enlightening. I was also able to understand what the codes discussed are for. Here are my takeaways on what I have understood from the codes.
First, I need to install the necessary plugins to be able to type in the code. In our class, we use Java first, so I installed a java development kit and Java coding pack. To input my code, you need to have an IDE (integrated development environment) to be able to type in your code and run it. In our class, we use Visual Studio Code. It is also necessary to install extensions so the code I will input will work.
At the start of the code, I need to input a public or a private class where a public class can be accessed anywhere, and a private class is restrictive and can only be accessed within the class. If I want to print/display a text or a number or anything I want, I will type System.out.print(); or System.out.println(); if I want the output to appear on the next line. There are also variables, such as double, char, int, boolean, and string to identify what data type that you are going to input.
The next is the scanner class. The first thing I need to do to be able to use the scanner methods is to type at the topmost part of the code "import java.util.scanner;". This is needed so that the scanner class can be used. The scanner class reads the code and then divides it into tokens. There are methods like hasNext(), next(), hasNextType(), and nextType() that can return true or return token string.
The activities were easy for me. I made a sample Credit Card statement for activity 2, in which I would just have to copy the code based on the picture if else statement, which I am familiar with, and switch class.
In conclusion, the lessons were manageable. Not that hard to learn and memorize, but I am still worried about when I will code without making any mistakes. I just need to practice and practice to be able to master coding.
Posted using Honouree