Skip to content

Commit

Permalink
Merge pull request #22 from ale3otik/reverser
Browse files Browse the repository at this point in the history
Reverser Zotov Alexey 496
  • Loading branch information
KhurtinDN committed Sep 25, 2015
2 parents 6bf1929 + 2ee7ae5 commit 7f1a4c1
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
36 changes: 36 additions & 0 deletions projects/ale3otik/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ru.mipt.diht.students</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>ru.mipt.diht.students</groupId>
<artifactId>ale3otik</artifactId>
<version>1.0-SNAPSHOT</version>
<name>ale3otik</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-stream</artifactId>
<version>4.0.4</version>
</dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.48</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Created by alex on 19.09.15.
*/
package ru.mipt.diht.students.ale3otik.reverser;

public class Reverser {
public static void main(String[] args) {
for (int i = args.length - 1; i >= 0; --i) {
String[] splittedStr = args[i].split("\\s+");
for (int j = splittedStr.length - 1; j >= 0; --j) {
System.out.print(splittedStr[j] + " ");
}
}
System.out.print('\n');
}
}
5 changes: 3 additions & 2 deletions projects/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>ru.mipt.diht.students</groupId>
Expand Down Expand Up @@ -28,6 +28,7 @@

<modules>
<module>dkhurtin</module>
<module>ale3otik</module>
<!--Add you module here-->
</modules>

Expand Down

0 comments on commit 7f1a4c1

Please sign in to comment.