HelloWorld.java 562 B

123456789101112131415161718192021222324252627
  1. package misc;
  2. import java.math.BigInteger;
  3. import java.util.Arrays;
  4. public class HelloWorld {
  5. public static void main(String[] args) {
  6. System.out.println("HelloWorld!");
  7. byte[] tmp = new byte[3];
  8. BigInteger bi = new BigInteger(1, tmp);
  9. System.out.println(bi.toByteArray().length);
  10. // System.out.println(tmp[3]);
  11. //System.out.println(Arrays.copyOfRange(tmp, 2, 1).length);
  12. byte[] a = new byte[]{0};
  13. byte[] b = a.clone();
  14. a[0] = 1;
  15. System.out.println(a[0] + " " + b[0]);
  16. // throw new ArrayIndexOutOfBoundsException("" + 11);
  17. }
  18. }