Just another WordPress.com site
Practice Java Tonight
January 17, 2014Posted by on
Tonight I forced myself to sit down and practice Java programming for 3 hours. For me, the best way to learn is through hands-on experience. I wrote a package that parses a text file, sort and count occurrence of each word. i’ve found out that Java String.split method and the C# version of the same behave differently. The former takes a regular expression and the latter takes a array of string that contains the splitting characters, or an array of splitting characters. The C# RegRx.Split behaves like the Java split.