题解 | #牛牛学说话之-字符#
牛牛学说话之-字符
https://www.nowcoder.com/practice/dc6d23c03cb644a7b5bb60925f4a2521
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); char c1 = in.next().charAt(0); System.out.println(c1); } }
注意:要记得导包!!