import java.io.*; //演示 System.out.write(). public class WriteDemo { public static void main(String[] args) { int b; b = 'A'; System.out.write(b); System.out.write('\n'); } }
运行以上实例在输出窗口输出 "A" 字符