Amateurs. I once reversed a palindrome in my sleep.
posted 1 week ago
Interesting. My code works fine on Java 11 and 14 - I hadn't tried it on 8. Guess they changed the internal implementation there. And my hamfisted System.err.close() didn't help. . I'll see if I can post a more general version in a bit...
I did see that my posted code had an extra } at the end, which I have removed. Other than that, it works fine on Java 11 and 14.
Mike Simmons wrote:Well, let's not confuse inadvisable with impossible...
I think none of us have doubts about Mike's knowledge, especially me. But I got hooked on the code he showed. Actually couldn't even sleep well.
I know it didn't work on my machine, but, is that something JDK related or it doesn't work. I know we say Strings are immutable, and I know what kind of beast the reflection is, I also know it is better not to touch it, but still, just gotta know now, is it possible to mutate string?
There's a whole lot more reversing going on than are dreamt of in your philosophy, Horatio.
Thanks. to Intel's dominance and in turn their lifting a page from DEC architecture, PCs were saddled with a bytewise-discontinuous order of storage for integral numbers in RAM (a/k/a "Little Endian"), which lead to the need for an operation known as "swabbing". Because if you wanted to talk to IBM's mainline products - and a great many other systems - you had to reverse the bytes.
Another common use for reversing byte ordering is in serialization/deserialization, and in particular in things like network communications.
A palindromic form might be used for an error-checking scheme.
So neither of those scenarios is all that unrealistic for a display of competence.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book