Skip to content

Version 1.1

Latest
Compare
Choose a tag to compare
@williamfiset williamfiset released this 06 Jun 18:01
· 35 commits to master since this release

Renamed methods some methods to match java.util.Scanner:

readByte() -> nextByte()
readInt() -> nextInt()
readLong() -> nextLong()
readLine() -> nextLine()
readString() -> nextString()
readDouble() -> nextDouble()
readDoubleFast() -> nextDoubleFast()

Added extra methods including:

  // Read an array of n values
  byte[]   nextByteArray(int n)
  char[]   nextCharArray(int n)
  int[]    nextIntArray(int n)
  long[]   nextLongArray(int n)
  double[] nextDoubleArray(int n)
  double[] nextDoubleArrayFast(int n)
  String[] nextStringArray(int n)

  // Read a 1-based array of n values 
  byte[]   nextByteArray1(int n)
  int[]    nextIntArray1(int n)
  long[]   nextLongArray1(int n)
  double[] nextDoubleArray1(int n)
  double[] nextDoubleArrayFast1(int n)
  String[] nextStringArray1(int n)

  // Read a two dimensional matrix of values of size rows x cols
  byte[][]   nextByteMatrix(int rows, int cols)
  int[][]    nextIntMatrix(int rows, int cols)
  long[][]   nextLongMatrix(int rows, int cols)
  double[][] nextDoubleMatrix(int rows, int cols)
  double[][] nextDoubleMatrixFast(int rows, int cols)
  String[][] nextStringMatrix(int rows, int cols)

  // Read a 1-based two dimensional matrix of value of size rows x cols
  byte[][]   nextByteMatrix1(int rows, int cols)
  int[][]    nextIntMatrix1(int rows, int cols)
  long[][]   nextLongMatrix1(int rows, int cols)
  double[][] nextDoubleMatrix1(int rows, int cols)
  double[][] nextDoubleMatrixFast1(int rows, int cols)
  String[][] nextStringMatrix1(int rows, int cols)