i know that this works in C/C++ but somehow I wont find a way in java to get this working.
I have about 50 methods and I want to count how many times i called them. It would work if I made 50 variables outside the method and inside I simply increment them.
But that are way to much variables. Is there a way to handle this with one variable inside the function? Or with one variable outside the methods.
I need just a way to do this with one variable.
Has anyone an Idea?
HashMap<String, Integer>?