我读了这个Java8官方文档:Streamsmayormaynothaveadefinedencounterorder.Whetherornotastreamhasanencounterorderdependsonthesourceandtheintermediateoperations.Certainstreamsources(suchasListorarrays)areintrinsicallyordered,whereasothers(suchasHashSet)arenot.Ifastreamisordered,repeatedexecutionofidenticalstrea