我是菜鸡,这种写法还有谁。。。。 public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); float a = sc.nextFloat(); String a1 = Float.toString(a);; String[] s = a1.split("\\."); char c = s[1].charAt(0); char[] d ={c}; ...