# ROT13(g(2307534882734083072Y,1,0).pbz)

Discussion in 'Java' started by thor, May 29, 2008.

1. ### thorGuest

private static void t(long a, int b, int c)
{
if ((a & 1) > 0)
{
System.out.print((char)('`' + c));
b = (((a >>=1) & 1) > 0) ? -b : b;
}
else if (a == 0) return;

t(a >> 1 , b, c + b );
}

thor, May 29, 2008

2. ### Daniel PittsGuest

thor wrote:
> private static void t(long a, int b, int c)
> {
> if ((a & 1) > 0)
> {
> System.out.print((char)('`' + c));
> b = (((a >>=1) & 1) > 0) ? -b : b;
> }
> else if (a == 0) return;
>
> t(a >> 1 , b, c + b );
> }

And the point of that little exercise? BTW, tail recursion can be
replaced by a loop.

--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Daniel Pitts, May 29, 2008

3. ### Sébastien de MapiasGuest

> And the point of that little exercise?
JarPit.

Sébastien de Mapias, May 29, 2008
4. ### Daniel PittsGuest

Sébastien de Mapias wrote:
>> And the point of that little exercise?

> JarPit.
>
>

Yes, thats the same result I got, but I wanted to know the "point" of
it? As far as challenges go, it was lame. As far as advertisements go,
it was lame. As far as sites go ...

--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Daniel Pitts, May 29, 2008