Saturday, January 26, 2013

Coding (11)

Right so I said I would explain some of the stuff that I learned over the pass few months. Well, here's the post that answers that.

So right to it.

 When you are parsing a String, it means that the computer is taking in an input value from the user and converting it into another form such as an Integer. So, yes, should you enter the number 3 into a program the computer will read it as text NOT a number value. So to convert that, you need to parse it, thus converting the String into a bit of code that the computer understands is a number.

Using Methods. Now, methods are a rather handy thing to have in Java when you want to make your work look cleaner and call functions that exist outside the main function that you are running. For more information, I really do suggest Jeff Wheaton's Java Programming for Beginners.

 Extending other classes is nice feature that Java offers. Basically, you can access other methods, variables etc not declared in your code but are declared in the extended class.

Importing packages is essential to do know and do once you get past the basics in Java. Importing packages increases the available things that Java can do and access. There are certain things that you won't be able to do in Java unless you import the correct package.

I learned a fair bit of other stuff but if I told you everything, what would be left to learn!

So go on out there. The whole Internet is at your fingertips.

Here's some motivation:

“ It's not at all important to get it right the first time. It's vitally important to get it right the last time. ”

“ Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. ”

No comments:

Post a Comment

We appreciate your comments and feedback. Thank you for helping to improve our projects!