Joe Parks
Posts: 107
Nickname: joeparks
Registered: Aug, 2003
|
|
Re: Setting the encoding for a char to a specified string
|
Posted: Oct 1, 2003 2:47 PM
|
|
A couple of things: The equals method in line 4 doesn't have an opening parenthesis. That's ok, though, because java.lang.String doesn't have an equals method that takes a char .
In line 5, you are declaring and initializing str as the lvalue, but you are attempting to reference it in the rvalue expression; it is not yet in scope within the rvalue expression. (and would cause a NullPointerException if it were)
Can you explain a little more what you're trying to do?
|
|