public static ArrayList < String > getInternedList ( List < String > oldList ) { ArrayList < String > newList = new ArrayList < String > ( oldList . size ( ) ) ; for ( String elem : oldList ) { newList . add ( elem . intern ( ) ) ; } return newList ; }
Gets a new list of Strings that have been interned .