⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.java

📁 此代码完成对输入流的装饰模式。可以输出自己想要的形式。
💻 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 + -