Posts by Natanael Ramos • 223 points
3 posts
-
6
votes4
answers312
viewsA: Count distinct names saved in txt
You can use the collection HashSet, where elements are held uniquely. If you try to insert an existing element, it is not added. The interesting thing about this collection is that the basic…
-
2
votes1
answer406
viewsQ: Run Graphviz (dot.exe) through Java application
I am trying to generate a graph from a . dot file using the Graphviz tool. To do so, inside a Java application, I am invoking the command prompt, navigating to the Graphviz installation folder and…
javaasked Natanael Ramos 223 -
4
votes1
answer3396
viewsQ: Java Regular Expression
I am programming in Java and need to filter a String from a regex using the method matches(). I can accept letters (a-z) or numbers (0-9), where that number can have 1 or n digits. I am using the…