📄 appabc01.java
字号:
import java.io.*;
public class AppAbc01
{
public static void main(String args[])
{
// char s[];
// char a=' ';
// char c=' ';
// int count=-1;
String s = "a";
System.out.print("Enter a character array ending with a '#':");
try
{
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
s = in.readLine();
System.out.println("您输入的字符串是"+s);
}catch(IOException e ){};
}
}
//@@@@@字符串方式输入
// String s = "a";
// System.out.print("Enter a integer array containing ten numbers:");
// try{
// BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
// s = in.readLine();
// System.out.println("您输入的字符串是"+s);
// }catch(IOException e) {};
//@@@@@循环输入单个字符01
// do
// {
// a = (char)System.in.read();
// count++;
// System.out.println("您输入的第"+(count+1)+"个字符是"+a);
// System.in.skip(2);
// }while (a!='#');
//@@@@@循环输入单个字符02
// System.out.println("请输入字符");
// c = (char)System.in.read();
// while (c!='#')
// {
// a = (char)System.in.read();
// c = a;
// count++;
// System.out.println("您输入的第"+(count+1)+"个字符是"+c);
// System.in.skip(2);
// }
//@@@@@循环输出
// int Max=0,Min=a[0],j=0;
// for(;j<10;j++)
// {
// if(Max<a[j])Max=a[j];
// if(Min>a[j])Min=a[j];
// }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -