Ogeh Ikem

Ranch Hand
+ Follow
since May 13, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ogeh Ikem

A similar question was asked a while ago - implicit casting
Because it’s a waste product, I won't advise swimming in it.
13 years ago

Maneesh Godbole wrote:When they banned smoking from bars which I used to haunt, I just took my business to bars which had restricted smoking zones.
These restrictions piss me off. If I had my way, I would not allow non smokers to sit in the smoking zone.



Is it practical to have a smoking zone in a bar? As Darryl pointed out earlier...

Darryl Burke wrote:I read this somewhere on the net:

Having a smoking section in a restaurant is like having a peeing section in a swimming pool.

13 years ago

Frank Silbermann wrote:I think a reasonable position would be to open a smokers' restaurant that would require all employees to wear gas masks (presumably with Darth Vader microphones so they could speak to the customers), and at the end of a shift to detox in a shower and put on clean clothes before leaving the premises.


Is that reasonable?

Randall Twede wrote:what happened to the owners rights? if i own a tavern(pub) why can't i allow smoking(it is my building). most of my customers smoke. if someone doesn't like it they can go to another. why am i forced by law to ban it?


Just as the law protects the innocent from criminals, it also protects non-smokers from smokers. One of the problems with smoking is that it contains a cocktail of toxic chemicals; many of which find their way into the bloodstream and contribute to plaque buildup in the arteries. People should not be allowed to spread this poison.


13 years ago
Living in tents is not the African Standard. Living a "pre-colonial" lifestyle is not the African Standard.
13 years ago

Frank Silbermann wrote:Also, if you live in a tent, by African standards you're not homeless...


That's a pretty ignorant statement. How much do you know about African Standards?
13 years ago
You can compile and run a class in a default package (just like any other class). The only problem is that you cannot import the default package.
13 years ago

Jack Robertson wrote:do I need to set any classpath when invoking the javac command?


You may need to set a classpath when invoking the javac command if the .java file you're trying to compile, uses a compiled class. One of the options to the javac command is -classpath. Read more here.
13 years ago

Pat Farrell wrote:But you may need five or more.


If your needs are not simple, you could just buy one really good one. These machines range from cheap ones which can support only a single equipment, to expensive ones which can support multiple equipments.
13 years ago
Alternatively, you can buy UPS (uninterruptible power supply) off ebay. Some sell for as low as $20.
13 years ago
class B can access a protected member declared in class A (located in a different package), only through inheritance i.e. only through a reference which is of type B (or a subclass of B).

class C can access a protected member declared in class A (located in a different package), only through inheritance i.e. only through a reference which is of type C (or a subclass of C).
13 years ago
I don't know what your main method looks like, but if you use this main method and you save file.gif in the src folder, you will see the image.



13 years ago
The statement Dozens[] da = new Dozens[3] creates the first object i.e. a Dozens array (1). The statement da[0] = new Dozens() creates 2 objects i.e. a Dozens object (2) and an int array (3). The statement Dozens d = new Dozens() creates 2 objects i.e. a Dozens object (4) and an int array (5). Total objects created is 5.

The statements d = null and da[1] = null make objects (4) and (5) eligible for GC at line 14. Both statements are necessary or else objects (4) and (5) wont be eligible for GC at line 14.