天天看点

软件工程导论课后习题Github作业(把一个英文句子中的单词次序逆序,单词中字母正常排列)

Java源代码 

package yly; 

         import java.util.Scanner;

         public class ruanjian {

                                     public static void main(String[] args) {

                                               // TODO Auto-generated method stub

                                               String q = "how are you";

                                               String[] aa=(String[]) q.split(" ");

                                               for(int i = aa.length ;i>0 ;i--){

                                                        System.out.print(aa[i-1]+" ");

                                               }

                                     }

                            }

软件工程导论课后习题Github作业(把一个英文句子中的单词次序逆序,单词中字母正常排列)
上一篇: Github介绍
下一篇: 读后感