import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.Stream; public class Main { "My life got flipped-turned upside down\n" + "And I'd like to take a minute\n" + "Just sit right there\n" + "I'll tell you how I became the prince of a town called Bel Air").replaceAll("[,.\r\n]", " ").split(" +"); } }
Standard input is empty
{1=a,a,I,a, 2=is,My,to,of, 3=Now,all,how,got,And,I'd,sit,you,how,the,Bel,Air, 4=this,life,down,like,take,Just,I'll,tell,town, 5=story,about,right,there, 6=upside,minute,became,prince,called, 14=flipped-turned}