j_example.java

来自「一个十分好的java基础学习的课件」· Java 代码 · 共 33 行

JAVA
33
字号
// ////////////////////////////////////////////////////////
// 
// J_Example.java
// 

// ////////////////////////////////////////////////////////

import java.io.OutputStream; 
import java.io.IOException; 

public class J_Example
{

    public static void main(String args[])
    {
        String s = "Wonderful OutputStream!";
        byte[] b;
        OutputStream out= System.out;
        
        b = s.getBytes( );  
        try
        {
            out.write(b);
            out.flush( );
        }
        catch (IOException e)
        {
            System.err.println(e);
        } // End of try/catch structure.
    } // End of method: main

} // End of class: J_Example

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?