Skip to content

Instantly share code, notes, and snippets.

@peterkos
Created May 4, 2015 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkos/d8ce1dafd9f0234be8b8 to your computer and use it in GitHub Desktop.
Save peterkos/d8ce1dafd9f0234be8b8 to your computer and use it in GitHub Desktop.
// My hack
ArrayList<Integer> arrayListOfIntegers = new ArrayList<Integer>();
for (char numAsChar : tempArray1AsChar) {
if (numAsChar != ' ') {
arrayListOfIntegers.add(Character.getNumericValue(numAsChar));
}
}
// Julian's hack
for (int i = 0; i < amountOfIntegersForFirstArray; i++) {
integersForFirstArray[i] = in.nextInt();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment