// 計算最大連續非遞減的數字長度 import java.io.*; public class a04 { public static void main(String args[]) throws Exception { //程式進入點 String getbr; int max,cnt; //放非遞減數字長度 char now;//放被取出來的那個字母 int i; BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); while (true) { max=1; cnt=1; do { System.out.print("請輸入字串:"); getbr = br.readLine(); if (getbr.equals("0")) //判斷結束 { System.out.println("結束!"); return; } } while (getbr.length()>10); now=getbr.charAt(0); //先取得第一個字母 for (i=1;i