java如何输入输入字母

import java.util.Scanner;

public class Text {
	public static void main(String[] args) {
	   Scanner scan = new Scanner(System.in);
	   String s = scan.next();
	   char[] a = s.toCharArray();
	   System.out.println(a);
    
	}
}

 

你可能感兴趣的:(Java)