I hope you know about system properties.. if not refer to K&B 794
This small program displays all the system properties...
Now one of the system property is "sun.arch.data.model" whose value is int....
Basically, the getInteger method takes a string and checks the string against all available properties and if a match is found it would return the properties value as INteger.
other wise its NULL
Try this statementin your code ..
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop