public class SY63 { public static void main(String[] args) throws Exception { System.out.print("请输入字符串:"); Scanner in = new Scanner(System.in); String st = in.nextLine(); FileWriter fw = new FileWriter("d:\\test.txt"); fw.write(st); fw…
//接收键盘输入: //怎么实现接收控制台输入? import java.util.Scanner; //Test.java import java.util.Scanner; public class Test16{ public static void main(String args[]){ System.out.println("input a number:"); Scanner in =new Scanner(System.in); int x1=in.nextInt();…