Unlikely Teacher

1. Share Everything* [Programming Gotchas, Technology News, Insights on Living and Everything in Between]

Entries Tagged as 'Java'

SCEA 5 Part I Study Guide Mind Map

April 11th, 2008 · 2 Comments · Books, Java, Programming

As promised, here’s the long overdue Mind Map for SCEA 5 Part I. This file builds on top of the OLD SCEA Part I Study Guide Mind Map. This file contain the references I used for SCEA 5 BETA Part I preparation last year which is just an addition to the resources already mentioned in [...]

[Read more →]

Tags: ······

Java 5 EOL Announcement

April 10th, 2008 · No Comments · Java

How time flies! Just when most people have started using Java 5, you get this announcement from SUN. Java SE 5.0 is in its Java Technology End of Life (EOL) transition period. The EOL transition period began April 8th, 2007 and will complete October 8th, 2009, when Java SE 5.0 will have reached its End [...]

[Read more →]

Tags: ···

Flex-ing Your Way to RIA Land

April 9th, 2008 · 1 Comment · Books, Flex

I’ve had the privilege to work on some proof of concept pages using Flex since last week. Yes, I’ve heard the buzz around RIA and Flex before but I didn’t have the time to play around with the application until now. I originally thought that it was somehow expensive to develop applications using Flex, but [...]

[Read more →]

Tags: ····

EJB Injection in JSF Managed Beans

April 1st, 2008 · 5 Comments · Java, Programming

While trying to create a simple prototype for an application which uses JSF, EJB 3 and JPA, I decided to implement the suggestions from the article: Using an EJB Session Bean as a Model Facade. I was particularly interested in injecting my EJBs to my JSF Managed Beans (the article mentioned that it should be [...]

[Read more →]

Tags: ·····

Time Unit Conversion in Java

March 28th, 2008 · No Comments · Java

Ever needed a utility which converts from one unit of time to another? Well with Java 5 and higher, you won’t have to create your own conversion routine any longer. Say for example you wanted to specify a value in seconds but the method you need to call expects a value in milliseconds (which is [...]

[Read more →]

Tags: ·

Java vs C# – switch statements

March 19th, 2008 · 1 Comment · C#, Java

This is my first installment of a new blog series I’m planning to call Java vs C#. Today, I’ll be discussing the behavior of “switch” statements in both Java and C#. Consider this snippet for Java which prints out the values “1″, “2″ and “Default” when value = 1. Since I did not add “break” [...]

[Read more →]

Tags: ···

Mobile Phone eBook Reader

March 19th, 2008 · 2 Comments · Books, Library, Programming, Tools

A few months back, my friend and I were discussing about the possibility of creating a free eBook reader for Java enabled phones. We were both very busy during that time so we had to postpone that plan. This morning, while quickly browsing through the projects at java.net, I came across this link. EBookME is [...]

[Read more →]

Tags: ····

Java JDK/JRE Downloads for Mac

March 7th, 2008 · 7 Comments · Programming

Did you know that you cannot download a JDK or JRE for Mac from Sun’s website? Well I didn’t. This is because “Mac OS X is the only major consumer operating system that comes complete with a fully configured and ready-to-use Java runtime and development environment”. Taken from: http://developer.apple.com/java/. To download/update Java for different versions [...]

[Read more →]

Tags: ···

IBM developerWorks Firefox Plugin

February 6th, 2008 · No Comments · Programming, Tools

If you’re a Firefox user and a constant visitor of IBM developerWorks, then you might be interested in a Firefox search plugin for devWorks discussed here. Taken directly from the link above: Want to have easy access to developerWorks? You can now add our new search plugin to your Firefox browser (thanks to our own [...]

[Read more →]

Tags: ···

Fibonacci

February 5th, 2008 · No Comments · Books, Programming

If you were given a task to compute the nth Fibonacci number, how would you do it? You would go straight away and write a recursive function right? public static int getNumberRecurse(int n) { if (n == 0 | n == 1) { return 1; } else { return getNumberRecurse(n – 1) + getNumberRecurse(n – [...]

[Read more →]

Tags: ····