有兄弟帮忙看看这代码为啥不a吗 import java.util.Scanner; public class Main {     public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         String str = sc.next();         int n = str.length();         char[] s = str.toCharArray();         int[] minL = new int[n];         minL[n - 1] = n - 1;         for (int i = n - 2; i >= 0; --i) {             minL[i] = s[minL[i + 1]] < s[i] ? minL[i + 1] : i;         }         for (int j = 0; j < n - 1; j++) {             if (s[j] > s[minL[j + 1]]) {                 swap(s, j, minL[j + 1]);                 System.out.println(s);                 return;             }         }         System.out.println(str);     }     private static void swap(char[] s, int a, int b) {         char tmp = s[a];         s[a] = s[b];         s[b] = tmp;     } }