View Single Post
  #4 (permalink)  
Old 07-02-2007, 03:30 PM
olatunbode olatunbode is offline
Member
 
Join Date: Jul 2007
Posts: 5
olatunbode is on a distinguished road
Little Error
Hi,

You cant call a non-static method by using Classname.Methodname format. You have to first create an object of the Class first, then use that object to call the methd. For instance:

PriorityQueue x = new PriorityQueue();
x.count();

or use a faster approach...
new PriorityQueue().count();

any of these should work.

Take care!

Jide
Reply With Quote