- 问答
- 2019-04-30 16:17:07 @
package ditu;
import java.util.Scanner;
import java.io.PrintStream;
public class Maln {
public static void main(String[] args) throws java.io.UnsupportedEncodingException {
PrintStream ps = new PrintStream(System.out, true, "UTF-8");
Scanner in = new Scanner(System.in);
int liqingso = in.nextInt();
String[] liqingsong = new String[liqingso];
for (int i = 0; i < liqingsong.length; i++) {
liqingsong[i] = in.next();
ps.println(liqingsong[i]);
}
}
}
2 条评论
-
liqingsong LV 5 @ 2019-05-08 10:02:33
import java.util.Scanner; import java.io.PrintStream; public class Maln { public static void main(String[] args) throws java.io.UnsupportedEncodingException { PrintStream ps = new PrintStream(System.out, true, "UTF-8"); Scanner in = new Scanner(System.in); int liqingso = in.nextInt(); String[] liqingsong = new String[liqingso]; for (int i = 0; i < liqingsong.length; i++) { liqingsong[i] = in.next(); ps.println(liqingsong[i]); } } }
-
2019-04-30 20:30:51@
提问排版太乱。请咨询一下诚杰、明扬等提问的同学,先把代码排好!
- 1