在java中關於使用scanner接受char類型字符的方法

import java.util.Scanner; Scanner scanner=new Scanner(); char sex=scanner.next().charAt(0);
相關文章
相關標籤/搜索