Category: Java

Integral out of range

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it.

Continue Reading

New Date in Java

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it.

Continue Reading

Associating enum values with ints

Simple things should be simple, complex things should be possible. Alan Kay I've been working quite a lot in Java. As part of the university course, we work with BT's people and 'bring meaningful innovation'. Because of university policies, we have to work in Java. Every now and again (more often than not actually), I

Continue Reading

Multiline strings in Java? Nobody's got time for that

Recently, I've been playing around with SQL strings (yes, I know outdated a little). They can very lengthy at times. So how can Java help us? It can't:

Meanwhile in C#:

Continue Reading

try... catch.. finally, which value gets returned?

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it.

Continue Reading

How to convert ArrayList to array in Java?

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Every now and again (more often than not actually), I came across painfully annoying constructs which make the code that much harder

Continue Reading