HelloWorld.java 579 B

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