various java test programs