Browse by Tags

All Tags » Java (RSS)

The difference between == and equals() when used in java.lang.String for Java

For students who would usually be taught C as their first programming language, a shift to Java could quickly make a confusion as they are crossing the boundaries between procedural and Object Oriented Programming. Both operators can be used in Java,...
Posted by lamia | 1 comment(s)

A New Agenda

Alright. So aside for some video tutorials I agreed to make with Keith, I decided to pickup some beginner, intermidate, or advanced questions I could find in any tech/programming forums and post the solution back here. Well, I'm getting a bit rusty...
Posted by lamia | with no comments
Filed under: , ,

Java Desktop 3D API's

I'm looking into going back to game development this year and I'm really keen on learning java 3D and I've scouted for a few Java 3d API that I could possibly use. Java3D JOGL LWGL JMonkey jPCT Xith3D Ardor3D I can't make any recommendations...
Posted by lamia | with no comments
Filed under: , ,

How I solved java.lang.UnsupportedClassVersionError

I was trying out HSQLDB to run SQL scripts with ANT last night when I encountered java.lang.UnsupportedClassVersionError. Never encountered this in 3 years of coding. Recently, I tried to play safe and installed several JDK (and JRE) versions, and so...
Posted by lamia | with no comments
Filed under: , ,

Setting the Decimal Separator in Java

I was asked to solve a problem of parsing a float value in dutch format ( 9,6 instead of 9.6). The former would always parse as a whole number, 96 instead of 9.6 ). I read on the documentation from sun, http://java.sun.com/j2se/1.4.2/docs/api/java/text...
Posted by lamia | with no comments
Filed under:

RAD7 - java.io.IOException: FATAL ERRORS encountered by WSDL2Java tool.

I was encountering the error below everytime I tried to invoke a WS client in RAD7. I was calling the WS through a console application using a generated client stub. Deployment error: java.io.IOException: FATAL ERRORS encountered by WSDL2Java tool. at...
Posted by lamia | with no comments

Eclipse seems intelligent enough to really follow Java naming conventions

I'm very sensitive on how I know my variables when I program and the most I'm very careful with is naming boolean variables. So I was trying to create a new variable inside of Eclipse and I'm not used to naming my boolean vars like isNew,...
Posted by lamia | with no comments
Filed under: ,

JUnit with Netbeans

In my office, TDD is a new methodology that we've just began adopting. My senior wrote a TestCase class before he left the company. Thanks to him, I got some sample codes to study. After baby sitting, I decided to open my computer and fire up netbeans...
Posted by lamia | 1 comment(s)
Filed under: , , ,

JBible - A Java based Bible Application

Well... It was one hell of a week for me and I needed something to remind me how fun programming is. Or used to be hehehe. This was supposed to be an entry to Keith's contest, I unfortunately fell ill a few days before the deadline and wasn't...
Posted by lamia | 7 comment(s)
Filed under:

Parsing Excel Date with POI - JXLS

Just a quick post from me here. I couldn't find any resources on the internet, I couldn't remember how I found this solution. Here's the scenerio. When you try to parse and Excel sheet using JXLS, unless your Excel sheet column is formatted...
Posted by lamia | 2 comment(s)
Filed under: ,

If-Else vs Throwing an Exception to handle errors

Note: In reading this post, please disregard for a moment the difference between an exception and an error. I mainly used the word error for convenience. Thank you. Yesterday, I was given a tip by my team lead which I found nice and quite elegant to do...
Posted by lamia | 3 comment(s)
Filed under: ,

Should Scala Extend the Java Language Capability?

While reading Bruce Eckel's article, Java: Evolutionary Dead End, he mentioned of another programming language which is somehow based on Java(and runs on the same VM) but has the feel and construct of a Scripting language(e.g. Ruby). I got interested...
Posted by lamia | with no comments
Filed under: ,

Deploying your Jar with your War in Eclipse

Note: I've done the following using Rad7 but should also be applicable to Eclipse(since RAD7 is basically made on top of Eclipse). When you have total control of you web container/app server, deploying jar files is as easy as dropping the folder in...
Posted by lamia | 2 comment(s)
Filed under: ,

Annoying requirement for an EJB Session Bean method

I'm a bit irritated about Session Beans because I have to implement the Serializable interface for every object that I pass to a Remote method. Of course, it totally makes sense to do that when you're making remote invocation but I'm thinking...
Posted by lamia | 2 comment(s)
Filed under: , ,

EJB and Java EE Design Patterns

I'm still not doing much here in my new job. There's still a lot of things to be set up. I finally got to meet with our very own Nards (N.Ocampo). Aside from that, I've been reading on Java Enterprise Design Patterns for the past one week...
Posted by lamia | with no comments
Filed under: , ,
More Posts Next page »