Category Archives: Java

Android Motivations

Over the past two months, since enrolling in Object Oriented Java, I’ve been seriously considering Android App development. We have a Mobile App Certification Program at my college. So, if you take Introduction to Programming, Object Oriented Java Programming, Mobile App Development I & II, you can qualify for a mobile apps certificate.

Since I already know Java, and have a good handle on it, it makes sense to consider it. There is also a shortage of Android developers, which might be helpful for landing that first development gig!

So, yesterday, I downloaded Android Studio, and enrolled in Udacity’s Developing Android Apps by Google.

The class is geared towards people who already know at least 1 or 2 programming languages. So, if you are like me, and know already know Java and second programming language, it’s a great way to get your feet wet, before commuting to anything.

And the best apart? It’s self-paced. And FREE!

If you are interested download Android Studio. And then proceed on to Udacity. Just follow the link to sign up.

Still Plugging Away at Java

I know I’ve been terrible at posting on my blog and Twitter. And I know I keep dropping off the face of the earth, but my schedule has been nuts.

I just want you to know, I’m still plugging away at Java. I’ve spent HOURS coding, like its my job.
In the past month, we covered a lot in Object Oriented Java. We dove further into about Encapsulation, Abstraction, Polymorphisim, Interfaces and most recently Java applets.

I must admit, learning about Java applets seems kind of pointless, as they are no longer supported. But, the extra knowledge doesn’t hurt. And it’s fun programming them. I made basic calculator this past week. It only performs 4 operations but, hey it’s a start.

And next week we’ll be covering JavaFX. So, i’ll post more information about that then.

I’ve also been helping my classmates with their code too. Since half my class took the JavaScript version of Intro to Programming, they stated on unequal ground. There were several things covered in the intro class that the Java class, that Intro to JavaScript does not explore. So, I have a group that I work with.

And, I’ve been using Uber Conference to pair program with them. And by helping them, I’m helping myself too! It forces me to really learn the material, and verbalize my whole though process, using the correct terminology.

Anyway, that’s pretty much it. I just wanted to give you a quick update.

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.

Methods and Arrays in Java

Wow, I’m more than halfway through the semester. We just finished learning how to create methods in Java and now we are focusing on arrays. It amazes me how similar, yet different programming languages are. In Java arrays must be of the same data type where as in JavaScript arrays can be declared like almost any other variable and can contain an array of variable types. No pun intended ha!

Last week, we worked on a program that checks whether a number is palindrome. I used two methods in this program. This assignment  was actually pretty cool. It asks the  user to input a multi-digit number. If the number entered is less than 0 or  is less than 10, the program rejects that number, and asks the user to enter another number. I used a while loop for that! 🙂

When the user  finally enters a mufti-digit  number the number is then reversed with a reverse method.  Finally the ispalindrome method checks to see if the number reversed is equivalent to the  the number initially entered.

I would  share my code with you, but I’m sure that would be frowned upon by my school and my professor.  But I can at least talk about it, which is cool! 🙂

On a positive note I’m getting faster at creating my programs. It used to take me a few days to write a program, but now I can finish one in a few hours! You have no idea how confident and happy that makes me feel! I’m slowly but surely becoming a stronger programmer!!  🙂