C/java codes