GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — :tada: feat: initial commit for 1009 using java · liuchuo/PAT@bc14215

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • BasicLevel_Java
    • 1009. 说反话 (20).java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎BasicLevel_Java/1009. 说反话 (20).java‎

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import java.util.Scanner;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
String str = new Scanner(System.in).nextLine();
6+
String[] strs = str.split(" ");
7+
for (int i = strs.length - 1; i >= 0; i--) {
8+
if (i != strs.length - 1) {
9+
System.out.print(" ");
10+
}
11+
System.out.print(strs[i]);
12+
}
13+
}
14+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.