baseN for java