Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public static void main(String [] args) {
  2. Inversion inv = new Inversion();
  3. ArrayList<Integer> array = new ArrayList<Integer>();
  4. Scanner scan = new Scanner(System.in);
  5. System.out.println("What is your input? ");
  6. while(scan.hasNextInt()) {
  7. array.add(scan.nextInt());
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement