Skip to content

undefined123456/test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package test; /**

  • 第三题
  • 单词颠倒顺序输出
  • @author 王海玲1

*/ public class Test3 { public static void main(String[] args) { String str="how are you"; String[] strs=str.split(" "); for(int i=0;i<strs.length;i++){ System.out.print(strs[i]+" "); } System.out.println(); for(int i=strs.length-1;i>=0;i--){ System.out.print(strs[i]+" "); } }

About

我的第一个仓库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%