那个逆序中文怎么做的

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 条评论

  • @ 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