The primary programming language for this subject, Data Structures and Algorithms, is Java. Classes started with downloading and installing an IDE called Visual Studio Code and the Java JDK package. This package is needed to code Java in Visual Studio Code. For the discussion proper about the Java language it started with outputs. In this case, how to print out examples of base types in the Java console window. Using the System.out.print(), and inside the parentheses is anything we want to print out.
Next is inputs. This time, a new class called java.util.Scanner is introduced and needs to be imported into the Java file for the code related to the input to work. It is also essential to not forget the "throws IOException" to ensure that there will be no errors in the input/output. The succeeding discussion talked about more of the syntax inside the java.util.Scanner class. This was also the first time I was introduced to "tokens" in Java. Tokens refer to characters that are separated by delimiters, with the default delimiter being whitespaces. The Scanner class scans the input and divides it into tokens. This concept has made me understand more about how inputs and scanning of inputs work in Java.
Furthermore, as with any other programming language, it is important to have the actual coding experience and can try different approaches and problems. The example program with CreditCard Class and Test Class gave a glimpse of how the accounting world works. Specifically on the importance of ensuring the classes will be in private to protect and secure the people's identity and information. There was also a coding activity using "switch" is something that I am grateful for. This is the first time I have actually used switch in coding. Overall, these exercises and activities given have assisted in my learning of the Java language.
Posted using Honouree