import cpp11_std_array.*; public class cpp11_std_array_runme { static { try { System.loadLibrary("cpp11_std_array"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } private static ArrayInt6 ToArray6(int [] a) { ArrayInt6 ai = new ArrayInt6(); if (a.length != 6) throw new RuntimeException("a is incorrect size"); for (int i=0; i<6; ++i) ai.set(i, a[i]); return ai; } private static void compareContainers(ArrayInt6 actual, int[] expected) { if (actual.size() != expected.length) throw new RuntimeException("Sizes are different: " + actual.size() + " " + expected.length); for (int i=0; i