Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void getAllowedIds(String stringFromFile) {
- try {
- String [] tempArray = stringFromFile.split(",");
- for (int i = 0; i < tempArray.length; i++) {
- allowedIds.add(Integer.parseInt(tempArray[i]));
- }
- }catch (NumberFormatException e) {
- System.out.println("The string contained non-integers.");
- e.printStackTrace();
- }catch (Exception n) {
- //for catching any other exceptions
- n.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement