Metrics for Java Applications