An easier way of doing this: Map occurences = new HashMap(); for (String word : text.split(" ")) { int times = (text.length()-text.replace(word, ""). length())/word.length(); occurences.put(word, times); text.replace(word, ""); } Then loop around it to give it a width and height and all that. Just a more easy (in my opinion) way to do this without dictionaries. Great videos anyway, keep 'em going!
I'm currently making a word processor in Java - it's gonna drive Word and Google Docs out of business (not rly) so this video was extremely helpful. Thanks!!!!!!
Your videos get me used to Java in a fun way instead of boring console apps. Coming from C#, processing is amazing. Thanks Daniel
Please never stop making videos, I love them!
You deserve more than 10 million subscribers!
Great job!
An easier way of doing this:
Map occurences = new HashMap();
for (String word : text.split(" ")) {
int times = (text.length()-text.replace(word, ""). length())/word.length();
occurences.put(word, times);
text.replace(word, "");
}
Then loop around it to give it a width and height and all that. Just a more easy (in my opinion) way to do this without dictionaries.
Great videos anyway, keep 'em going!
This guy on a different level.
I'm currently making a word processor in Java - it's gonna drive Word and Google Docs out of business (not rly) so this video was extremely helpful. Thanks!!!!!!
My god, your challenge videos are awesome.
I can't thank you enough for this video! You just saved my project! :)
I have no idea how smart of an idea it is, but I will try processing and p5.js out, you caught me ;)
8:51 Wow that's beautiful !
very nice, more good ideas for a project I will work on. Thank you!
I love processing!!
respect man.
How to add p5* in atom?)
Serafim Poch download P5js in P5js.org load the file to you code editor add .js to your HTML using