Java logging API is used in my project. They are using logger like in constructor of a class A, for example:
public A(Context context) {
log_ = (Logger) context.getAttribute(LOGGER);
}
I have to implement it for a class which doesnot have a constructor... I tried to make a object of that class like in:
Class B {
B b;
}
and tried to use logger like:
log_ = (Logger) b.getAttribute(LOGGER);
But I keep getting the error <identifier expected> at this line? What is fault here? Thanks in advance.
Band put the assignment in there.AandB. Can you explain it?