Categories
Certification Java SCJP

Declaration Rules in Java

Another one of my short and sweet posts in my SCJP study guide section. This one is quite straightforward, so we’ll keep it quick, since I know you’d much rather be facebooking or watching cats do strange things on youtube… Declaration rules, in regards to the class files themselves, meaning what you can and can’t […]

Categories
XML

How to quickly and easily convert a formatted XML into a single line…

So you’ve got a nicely formatted XML object, with all your indentation setup so that it is easy to read. However there may come a time when you need that lovely XML to be formatted to a single line. You could post it into notepad and manually format it, however this becomes quite a chore […]

Categories
Android Java XML

Android or Standard Java; Mapping your XML onto POJOs easily, and vice versa

I’ve listed this post under Android, but to be honest this could apply to both J2SE and J2EE, its not really specific to Android but it was part of a requirement I was working with for a recent Android project. The problem I had, was that I was getting an XML String as a response […]

Categories
Java SCJP

Identifiers and JavaBeans

Identifiers are what we use to identify parts of our code, whether this is a class, method or a variable. There are some ground rules on the names we can give to these identifiers, and it is good to understand the ground rules regarding these. There are 3 levels, or aspects of identifiers, and are […]

Categories
Certification Java SCJP

Incrementing and Decrementing, the operators

The operators for incrementing and decrementing in Java has been irritating me for some time now, just when I think I understand whats going on, I try a mock exam for SCJP and I get caught out. So I’ve decided to sit down, do a bit of reading, and drill it out. Take this example, […]