Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
7d8eb0b0
Commit
7d8eb0b0
authored
Jun 25, 2015
by
Ioannis Tsafaras
Browse files
LAM-20 Display hashtag in front of words
parent
692567ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Hashtag_WordCount/src/main/java/com/john/hwc/Hashtag_WordCount.java
View file @
7d8eb0b0
...
...
@@ -90,7 +90,7 @@ public class Hashtag_WordCount {
Matcher
m
=
Pattern
.
compile
(
"#(\\w+)"
)
.
matcher
(
value
.
toLowerCase
());
while
(
m
.
find
())
{
hashtags
.
add
(
m
.
group
(
1
));
hashtags
.
add
(
m
.
group
(
0
));
}
String
[]
tokens
=
hashtags
.
toArray
(
new
String
[
hashtags
.
size
()]);
...
...
Hashtag_WordCount/target/hwc-1.0.jar
View file @
7d8eb0b0
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment