Unlikely Teacher

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

Entries Tagged as 'Programming'

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: ···

Content Assist / Code Completion problem with Eclipse and Netbeans

February 27th, 2008 · 15 Comments · Programming

I’ve had the weirdest problem the other day. It was the first time I went back to using our DELL E1405 after being very comfortable with my company issued D620 (which I now had to surrender to my former employer). Everything was working well until I noticed a simple but very annoying problem: CTRL+SPACE for [...]

[Read more →]

Tags: ····