1、冒泡排序2、相邻两个字母的位置用while循环获取:j k import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); System.out.println(sortStr(str)); } private static String sortStr(String str) ...