When I was in Stockholm a few months ago using cash seemed actively discouraged. There were several restaurants and other businesses I went to that refused to accept cash.
It's was the exact opposite for me when I was in Berlin last year. The only places that I found that accepted cards were tourist stops and Starbucks. None of the good, local restaurants I visited accepted cards and there were frequently lines on ATM machines.
Germans are well known for their propensity for cash, in part due to their strong desire for privacy. Often they will take cards, but only something like their indigenous GeldKarte[0] which tries to be as cash like as possible.