import java.nio.ByteOrder;
public class FindEndianness {
public static void main(String[] args) {
ByteOrder b = ByteOrder.nativeOrder();
if(b.equals(ByteOrder.BIG_ENDIAN)){
System.out.println("Big Endian");
}else if(b.equals(ByteOrder.LITTLE_ENDIAN)){
System.out.println("Little Endian");
}
}
}
2 comments:
This was really good.
I liked this blog.
Keep this work going on..i have my interview at adobe day after 2morow.
You can mail me for any queries you might have.
Thanks
Post a Comment