Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Зотов Алексей, 496, Reverser #22

Merged
merged 17 commits into from
Sep 25, 2015
Merged
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;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У вас класс находится в директории ru/mipt/diht/students/ale3otik/reverser
а пакет называется "ru.mipt.diht.students.ale3otik". Должно быть консистентно (нужно добавить пакет reverser). Если вы пользуетесь Intellij Idea, она бы вам подсветила это место как warning.


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