You won't...not from java at least. How you determine endianess will be
platform-dependant. In glibc (and possibly libc5) systems, look at
/usr/include/endian.h (you'll have to have native code for this). This
will be different on other systems (for example, Solaris).
And lo, the chronicles report that Leung Yau Wai spake thusly unto the masses:
>
> Dear all,
>
> I would like to ask about a question. I am doing a JAVA program
> which should deal with system architeucture. I would like to ask a
> question how can I know the system is little endian or big endian?
>
> Thanks!
>
--
¤--------------------------------------------------------------------¤
| Aaron Gaudio mailto:[EMAIL PROTECTED] |
| http://www.rit.edu/~adg1653/ |
¤--------------------------------------------------------------------¤
| "The fool finds ignorance all around him. |
| The wise man finds ignorance within." |
¤--------------------------------------------------------------------¤
Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.