Invoke private method with interface as argument
- by Stephanie
Hi,
I've been attempting to invoke a private method whose argument is a parameter and I can't quite seem to get it right.
Here's kind of how the code looks so far:
public class TestClass {
public TestClass(){
}
private void simpleMethod( Map<String, Integer> testMap) {
//code logic
}
}
Then I attempt to use this to…