package mjava.io;

import mjava.lang.MString;

public class SimpleOutputStream {

	static {
		System.loadLibrary("SimpleOutputStream");
	}

	public void write(MString msg) {
		write(msg.getValue());
	}

	public native void write(char[] msg);

	public static void run() {
		char[] s = { 'H', 'e', 'l', 'l', 'o' };
		System.out.println(new String(s));
		
		// 下面这行代码总是不显示东西，why？
		//new SimpleOutputStream().write(new MString(s)); 
		
		
	}
}

@@ -312,74 +312,8 @@
 ;%0A%09%09
-System.out.println(new String(s));%0A%09%09%0A%09%09// %E4%B8%8B%E9%9D%A2%E8%BF%99%E8%A1%8C%E4%BB%A3%E7%A0%81%E6%80%BB%E6%98%AF%E4%B8%8D%E6%98%BE%E7%A4%BA%E4%B8%9C%E8%A5%BF%EF%BC%8Cwhy%EF%BC%9F%0A%09%09//
 new 
@@ -359,15 +359,8 @@
 s));
- %0A%09%09%0A%09%09
 %0A%09%7D%0A

Update SimpleOutputStream.java