I need my HashMap to print out alphabetically. E.g Im making restaurant menu, with names of dishes and price. I'm still learning these things but so far i realized that i will need HashMap due to fact that i will have certain item with both name and price. Can i use something else, if yes what, if not how can i print just once for instance from avocado to zest of Lemon e.g. regardless of price. I've seen some workarounds including integers but not with names.
Any help would be appreciated.
Thanks