private static void printAll_Chars(char[] booleanArray, RAMReader arrayReader) { for (int i = 0; i < Const.NUM_BYTES_IN_ONE_CHAR * booleanArray.length; i++) try { System.out.println("One byte from char: " + arrayReader.readByte()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
private static void printAll_Longs(long[] longArray, RAMReader arrayReader) { for (int i = 0; i < Const.NUM_BYTES_IN_ONE_LONG * longArray.length; i++) try { System.out.println("One byte from long: " + arrayReader.readByte()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
private static void printAll_Doubles(double[] doubleArray, RAMReader arrayReader) { for (int i = 0; i < Const.NUM_BYTES_IN_ONE_DOUBLE * doubleArray.length; i++) try { System.out.println("One byte from double: " + arrayReader.readByte()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
private static void printAll_Shorts(short[] shortArray, RAMReader arrayReader) { for (int i = 0; i < Const.NUM_BYTES_IN_ONE_SHORT * shortArray.length; i++) try { System.out.println("One byte from short: " + arrayReader.readByte()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }