Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old May 7th, 2008, 5:33 AM   #1
Lakrids
Newbie
 
Join Date: Dec 2007
Posts: 28
Rep Power: 0 Lakrids is on a distinguished road
PriorityQueue problem

Hello,

I am writing a program which needs at a certain point the use of priority queues. For that I use java.util.PriorityQueue. The problem is that javac refuses to compile my code, and I just don't understand why. For the following code :
java Syntax (Toggle Plain Text)
  1. // ...
  2. import java.util.PriorityQueue;
  3. // ...
it says
Error : The import java.util.PriorityQueue cannot be resolved
WHY? It is supposed to be there!!
Even with
java Syntax (Toggle Plain Text)
  1. // ...
  2. import java.util.*;
  3. // ...
  4. PriorityQueue q = new PriorityQueue();
or
java Syntax (Toggle Plain Text)
  1. // ...
  2. import java.*;
  3. // ...
  4. PriorityQueue q = new PriorityQueue();
it gives
Error : PriorityQueue cannot be resolved to a type

What is the problem?
Lakrids is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cration of a new control, problem with adding new controls beni_dude C# 5 Apr 15th, 2008 4:31 PM
Challenging Programming Problem - "Pinball Ranking" Sane Coder's Corner Lounge 38 Jan 15th, 2008 5:16 PM
Problem solving ReggaetonKing Software Design and Algorithms 7 Jan 4th, 2008 1:49 PM
Windows Multimedia API - double buffering problem Brent C++ 1 Dec 21st, 2007 5:52 PM
cgi/perl script + IE problem joyceshee Perl 2 Jan 24th, 2006 11:10 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC