You need to use the built-in line separator. The gain is usually that you won't have to problem what program you code is jogging on, it can just function. Due to the fact Java 1.sevenOccasionally - but only extremely rarely - rather than a new ArrayList, you may want a new LinkedList. Start off out with ArrayList and When you have efficiency compli