'Separating Key and Value by Space After Sorting HashMap

i tried sort hashmap using this command, but the output is

"Key=value"

How to make the output to "Key Value"

separated by spaces (" ")

map.entrySet()
.stream()
.sorted(Map.Entry.<String, Integer>comparingByKey())
.forEach(System.out::println); 

Please help me, I will be very grateful



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source