Very Weird ?
We were writing a crazy program but then we come up with a
really weird thing
String d=Tashak.Edges.get(0).gett();
String b="B";
System.out.println("sdf"+d+"f");
++++System.out.println((Tashak.FindNodeWithName(Tashak.est,"B")));
****System.out.println(Tashak.FindNodeWithName(Tashak.est,d));
the call with the **** sign shows null
however the call with the +++ sign gives result "node@923e30"
which is the right answer
any Ideas Whyit seems the direct input to method as "B" works but
for some reason the otherways don"t
thank u very much
> ll with the **** sign shows null
> however the call with the +++ sign gives result
> "node@923e30"
> hich is the right answer
Maybe the value of your d variable is null... Anyway, to answer more precisely, you have to show the implementation of the Tashak.FindNodeWithName() method.
What is the value of the d variable?
> eeee prompt answers will be apreciated
>
> we are kind of a trying to fix it right now
This kind of comment is not well-received here. People answer questions on their own time. You waited a whole 8 minutes before whining for a faster answer. Next time be more patient and manage your time bette.r
You problem is because you're using ==, rather than equals(), to compare Strings.
jverda at 2007-7-13 23:54:52 >

And, please, next times use [code] and [/code] tags when you post your codes. It will make your code much more readable for us, as it is described in [url http://forum.java.sun.com/help.jspa?sec=formatting]Formatting Tips★[/url]