📄 j_example.java
字号:
// ////////////////////////////////////////////////////////
//
// J_Example.java
//
// ////////////////////////////////////////////////////////
import java.io.*;
public class J_Example
{
public static void main(String args[])
{
String s;
try
{
BufferedReader fs =new BufferedReader(new FileReader("test.txt"));
PrintWriter fd =new PrintWriter(new FileWriter("out.txt"));
s= fs.readLine( );
while( s!= null )
{
System.out.println(s);
fd.println(s);
s= fs.readLine( );
}// End of loop: while.
fs.close( );
fd.close( );
}
catch(Exception e)
{
System.out.println(e);
} // End of try/catch structure.
} // End of method: main
} // End of class: J_Example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -