Results 1 to 3 of 3
Thread: why?
- 06-06-2008, 05:49 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 1
- Rep Power
- 0
why?
hi guys,
i'm trying to implemenet in java a pathfinding online search algorithm using applet.While compiling says everything is ok when i'trying to run the program, the output says that the following part of the code has some kind of problem which is not syntax
public int getRhsValue(){
if( !hasParent() )
{
return 0;
}
else
{
sibval=field.getAccessibleSiblings(point);
iterator = sibval.listIterator( 0 );
while( iterator.hasNext() )
{
LPAStarPoint current = iterator.next();
int cost=current.getCostFromStartPoint()+1;
array.add(cost);
Object o=Collections.min(array);
String str=o.toString();
int rhs=Integer.parseInt(str);
}
return this.rhs;
}
}
public int setRhsValue(int rhs)
{
return rhs;
could anyone please tell me what probably goes wrong???thanxLast edited by vassss; 06-06-2008 at 06:13 PM.
- 06-06-2008, 07:56 PM #2
Could you post the stacktrace?
freedom exists in the world of ideas
- 06-09-2008, 01:02 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, please provide more details regrading it. Your code is not enough to give a hint to solve your question.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks