-
Notifications
You must be signed in to change notification settings - Fork 36
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
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
68884a4
task 0
ale3otik 06a04e2
Add some changes
ale3otik 0a71def
ilast str is empty
ale3otik b07c8e1
delete folder
ale3otik b3dc218
delete my folder
ale3otik 434eb4a
Merge branch 'master' of https://github.com/KhurtinDN/fizteh-java-2015
ale3otik 05ee76e
Reverser with new rules of location
ale3otik 04f595e
add package
ale3otik c324256
delete folder 0_Reverser
ale3otik cabf326
change global pom.xml
ale3otik df0cf7e
start twitterstream task
ale3otik bc17af9
add stream
ale3otik 734e446
Add JCommander to parse arguments
ale3otik 4766fa6
correct some style mistakes
ale3otik f7f4605
try coomit into reverser
ale3otik 31ae6d0
add only reverser task
ale3otik 2ee7ae5
package style corrected
ale3otik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
16 changes: 16 additions & 0 deletions
16
projects/ale3otik/src/main/java/ru/mipt/diht/students/ale3otik/reverser/Reverser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
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'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.