posted by kelsey on .
How do i read in a vector of integers with a space inbetween (i.e. 0 1 2 3) and make it an integer array? in java
Try the Scanner class.
If you are reading in from the keyboard, it would look like:
Scanner sc=new Scanner(System.in);
Read the Java API under Scanner for more detailed information.