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

📄 showcharvalue.java

📁 java 编程的一些简单例子
💻 JAVA
字号:
import java.io.*;
public class showCharValue
{
public static void main(String args[])
{
    char ch,min;
    try
     {
          System.out.println("please input a char,end with '#'");         
	  ch=(char)System.in.read();
          min=ch;
          System.out.print(min);
	  while(ch!='#')
             {
	       ch=(char)System.in.read();
 	       min=(ch<=min&&ch!='#')?ch:min;
		System.out.println("min:"+min);
	      
              }
		System.out.print(min);	            
      }
catch (IOException e)
      {
	System.err.println(e.toString());
       }
}
}
      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -