April 22:
Today was the last day of the training with our teacher, Sir Tago. Tomorrow, we will start learning another technology which we will use for our project and we will have a new mentor that will guide us on our project.
The first part of today’s training is basically just a fast review of Java, and we were given
exercise that uses mostly the Java 1.5, which involved Generics. The exercise is about cards and decks of which you need to produce the complete 52 cards, shuffle it and display the cards.
I have fun doing this exercise because I really love generics! and I’m so thankful that i learned generics during my cs 192 (software engg) class. I thought before that it was hard to shuffle cards (like making your own algo to do this), but then through this exercise, I learned that there is already a built it function for shuffle! cool! There’s a lot in the Collections class that i need to check, for example, if you want to use the sort function of collections, you need the list to be comparable, hence, you need to implement a comparable class. Things like this is important because it makes coding faster, and of course it makes a lazy person like me happy
I finally learned how to use JDBC or the Java Database Connectivity. I have been wanting to learn how to access the database using java, and now, i finally know how, and the good thing is, it wasn’t hard at all, all I need is to see the API, and basically that’s it. As for our exercise, we tried the basic SQL functions like insert, update, delete and search function.
~~jensze