File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes can't figure this one out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

can't figure this one out

joew weakers
Ranch Hand

Joined: Aug 21, 2003
Posts: 48
Hey there folks. Wondering maybe someone might be able to assist me with this quick query. I have two classes - GeomInVectors and SDOGeometries -which essentially take geometry values from my database and place these geometries into simple vector objects. Having declared variables statically my program executed the way I wanted it to. However I was told that static variables were only to be used as a last resort and having changed these static variables to non-static my program ceased to work correctly. Below are a couple of commented code snippets which are used in executing my program. Perhaps somebody may spot something I cannot see!
from the GeomInVectors class:

My question is simply why is the vector ptv empty in the printPoints method whereas it should be filled with points returned from my database. The points are being retrieved as they are printed correctly to the screen in the printGType method. I cannot see what is wrong here. Thanks Joe
[ October 13, 2003: Message edited by: Cindy Glass ]
Tom Wolve
Ranch Hand

Joined: Sep 22, 2003
Posts: 32
you'll find my answer in the beginner forum
Your Post
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: can't figure this one out
jQuery in Action, 3rd edition