Yeah sorry it is intresting code. I have now got it doing it via the
char comparison but its not doing anything!! The program just stops!!
Was there anything e;se that jumped out at you
On Sun, 30 Nov 2003 13:11:39 -0500, Sudsy <>
wrote:
>Some interesting code! First you have to decide whether you're
>going to using Strings or chars. Based on your coercion of an
>int into a String containing a single character, it appears
>that you're going the String route. But then you do the oddest
>comparison! If you're checking for String equivalance then you
>should use temp.equals( "|" ). Your code just checks whether the
>strings share the same memory location. (They don't)
>That being said, have you considered using char instead? That
>would make the if statement look like this:
> if( '|' == (char) ch ) {
>A bit less overhead than what you've got currently.
|