what is the actual difference between map() and flatMap()?

hi guys. can smb help me out with stream().map() and stream().flatmap? In the google i saw that flatmap flattens smth. What does it even mean? Can smb explain? Thanks alot
Was this page helpful?