private static String [ ] readMissingPersonList ( ) { final Scanner sc = new Scanner ( RiksdagenPersonsWorkGeneratorImpl . class . getResourceAsStream ( "/personlist.txt" ) , StandardCharsets . UTF_8 . name ( ) ) ; final List < String > lines = new ArrayList <> ( ) ; while ( sc . hasNextLine ( ) ) { lines . add ( sc . nextLine ( ) ) ; } sc . close ( ) ; return lines . toArray ( new String [ 0 ] ) ; }
Read missing person list .