Monthly Archives: September 2016

Days 2-3 of #100DaysofCode

I solidified my knowledge on classes, constructors (both regular and no-arg constructors), static variables, class methods, and encapsulation. It was a lot to take in at first, but after reading the Intro to Java textbook, and a few tutorials online it all made sense.

I meant to post this sooner but working, coding, and my classes have kept me busy. For the past two days I’ve been working on a program called Test Account.

In this program I created a class called Account where I gave it a private id, balance, annual interest rate, and date changed. Since the point of the program is to function like an actual bank account the balance needs to be updated with deposit and withdrawals. The data items will need to be private and accessed/mutated through getters and setters. Additionally, I had to create methods to address the monthly interest, annual interest, deposits, and withdrawals on the account.

I used the scanner object to get input from the user. I stored these inputs into variables which I would later use as arguments for my getters, and methods.

Finally I returned and printed the updated balance, monthly interest, annual interested and date created to the user.

If you are taking Java or have the Intro to Programming in Java text book by Daniel Liang 10e try it out. It should be at the end of chapter 9. My program is probably a bit different because my professor likes to customize it, but it’s should otherwise be fairly similar..,

Happy Coding!

Object Oriented Java Programming

I’m back at it with another Java programming class. I finally got around to registering for the Object Oriented Java Programming, which is the second course in the Java programming series. I really missed having other people, who I could pair with or discuss programming. I also missed the code reviews. And having a someone in the field to ask for help.

Classes began last week. We are currently learning about multi-dimensional arrays, classes, and objects.
These topics are a slight review of what was covered in the introductory course. However, since this is NOT an introductory course we are going more in depth with our programs, and projects. Either way it has been helpful for me since I have not looked and Java in forever.

But, it’s amazing what stays with you. I figured I would have lost a lot of my Java programming knowledge from having spent quite some time away from it, but that was not the case.

Anyway, if you follow me on twitter then you will have noticed I mentioned that I’m starting #100DaysOfCode.
Tonight I’m working on a accounting program. So that’s what I’ll be working on for the next couple days. I will not be able to post my code online, but I can discuss what I am learning. And will make an effort to post online everyday, either on here or twitter.