📄 例6.txt
字号:
import java.io.*;
public class Example
{ public static void main(String args[])
{
int n=-1;
ByteArrayOutputStream out=new ByteArrayOutputStream();
for(int i=1;i<=127;i++)
{
out.write(i);
}
ByteArrayInputStream in=new ByteArrayInputStream(out.toByteArray());
while((n=in.read())!=-1)
{
if(n%2==0)
{
System.out.printf("\n");
}
System.out.printf("\t字节%d,对应字符\'%c\'",n,(char)n);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -