working charge class and java documented