add func4 to C.java