Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-10-2009
Member
 
Join Date: Feb 2009
Posts: 96
JAVA incomaptible types

I don't understand why I'm getting this error. All I did was copy a working method and changed the variables. I also created a new edge class and a new vert class and changed all their variables.

Thanx

Daren



cityToCity.java:66: incompatible types
found : Prices
required: edgeP
for (edgeP eP : up.adjPrices)
^






public static void runPricePaths(Prices sourceP)
{
sourceP.minPrice = 0.;
PriorityQueue<Prices> pQueue = new PriorityQueue<Prices>();
pQueue.add(sourceP);

while (!pQueue.isEmpty())
{
Prices up = pQueue.poll();

// Visit each edge exiting u

for (edgeP eP : up.adjPrices)
{
Prices p = eP.targetP;
double pweight = eP.weightP;
double distanceThroughU = up.minPrice + pweight;
if (distanceThroughU < p.minPrice)
{
pQueue.remove(p);

p.minPrice = distanceThroughU ;
p.prev = up;
pQueue.add(p);

}

}
}
}
Reply With Quote
  #2  
Old 05-10-2009
Member
 
Join Date: Feb 2009
Posts: 96
Re: JAVA incomaptible types

i figured it out ty
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "JAVA incomaptible types"
Thread Thread Starter Forum Replies Last Post
Java Auto Updater wants me to update java everyday in Windows 7 minajoh Windows Software 4 04-09-2013 11:04 PM
Multiple generic types in java Maya Angelou Software Development 5 11-03-2010 01:11 PM
Different types Types CCFL's Zipp Overclocking & Computer Modification 3 29-10-2009 09:11 AM
Types of different JDBC driver in JAVA technology GunFighter Software Development 3 11-09-2009 02:11 PM
What are the different types of access modifiers in JAVA? Bhim Software Development 4 25-02-2009 09:53 PM


All times are GMT +5.5. The time now is 09:02 PM.