📄 test.java
字号:
import java.io.*;
public class Test
{
public static void main(String []args)throws IOException
{
int ch=0;
System.out.println("Now I will read a file. and change lower case to upper case and upper to lower\n");
try
{
InputStream input=
new changeCaseInputStream(
new BufferedInputStream(
new FileInputStream("changeCase.txt")
)
);
while((ch=input.read())>=0)
{
System.out.print((char)(ch));
}
input.close();
}
catch (IOException ioe)
{
ioe.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -